C# Class KeePassLib.Serialization.IOConnection

Show file Open project: cappert/keepass2 Class Usage Examples

Private Properties

Property Type Description
AcceptCertificate bool
AssignCredentials void
ConfigureWebClient void
ConfigureWebRequest void
CreateWebClient IOWebClient
CreateWebRequest System.Net.WebRequest
DisposeResponse void
GetWebProxy bool
GetWebProxyServer bool
IsFileWebRequest bool
IsFtpWebRequest bool
IsHttpWebRequest bool
IsHttpWebRequest bool
OpenReadLocal Stream
OpenWriteLocal Stream
PrepareWebAccess void
RaiseIOAccessPreEvent void
RaiseIOAccessPreEvent void
SendCommand bool
SetProxy void

Public Methods

Method Description
DeleteFile ( IOConnectionInfo ioc ) : void
FileExists ( IOConnectionInfo ioc ) : bool
FileExists ( IOConnectionInfo ioc, bool bThrowErrors ) : bool
OpenRead ( IOConnectionInfo ioc ) : Stream
OpenWrite ( IOConnectionInfo ioc ) : Stream
ReadFile ( IOConnectionInfo ioc ) : byte[]
RenameFile ( IOConnectionInfo iocFrom, IOConnectionInfo iocTo ) : void

Rename/move a file. For local file system and WebDAV, the specified file is moved, i.e. the file destination can be in a different directory/path. In contrast, for FTP the file is renamed, i.e. its destination must be in the same directory/path.

Private Methods

Method Description
AcceptCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool
AssignCredentials ( IWebProxy prx ) : void
ConfigureWebClient ( WebClient wc ) : void
ConfigureWebRequest ( WebRequest request, IOConnectionInfo ioc ) : void
CreateWebClient ( IOConnectionInfo ioc ) : IOWebClient
CreateWebRequest ( IOConnectionInfo ioc ) : WebRequest
DisposeResponse ( WebResponse wr, bool bGetStream ) : void
GetWebProxy ( IWebProxy &prx ) : bool
GetWebProxyServer ( IWebProxy &prx ) : bool
IsFileWebRequest ( WebRequest wr ) : bool
IsFtpWebRequest ( WebRequest wr ) : bool
IsHttpWebRequest ( Uri uri ) : bool
IsHttpWebRequest ( WebRequest wr ) : bool
OpenReadLocal ( IOConnectionInfo ioc ) : Stream
OpenWriteLocal ( IOConnectionInfo ioc ) : Stream
PrepareWebAccess ( IOConnectionInfo ioc ) : void
RaiseIOAccessPreEvent ( IOConnectionInfo ioc, IOAccessType t ) : void
RaiseIOAccessPreEvent ( IOConnectionInfo ioc, IOConnectionInfo ioc2, IOAccessType t ) : void
SendCommand ( IOConnectionInfo ioc, string strMethod ) : bool
SetProxy ( ProxyServerType pst, string strAddr, string strPort, ProxyAuthType pat, string strUserName, string strPassword ) : void

Method Details

DeleteFile() public static method

public static DeleteFile ( IOConnectionInfo ioc ) : void
ioc IOConnectionInfo
return void

FileExists() public static method

public static FileExists ( IOConnectionInfo ioc ) : bool
ioc IOConnectionInfo
return bool

FileExists() public static method

public static FileExists ( IOConnectionInfo ioc, bool bThrowErrors ) : bool
ioc IOConnectionInfo
bThrowErrors bool
return bool

OpenRead() public static method

public static OpenRead ( IOConnectionInfo ioc ) : Stream
ioc IOConnectionInfo
return Stream

OpenWrite() public static method

public static OpenWrite ( IOConnectionInfo ioc ) : Stream
ioc IOConnectionInfo
return Stream

ReadFile() public static method

public static ReadFile ( IOConnectionInfo ioc ) : byte[]
ioc IOConnectionInfo
return byte[]

RenameFile() public static method

Rename/move a file. For local file system and WebDAV, the specified file is moved, i.e. the file destination can be in a different directory/path. In contrast, for FTP the file is renamed, i.e. its destination must be in the same directory/path.
public static RenameFile ( IOConnectionInfo iocFrom, IOConnectionInfo iocTo ) : void
iocFrom IOConnectionInfo Source file path.
iocTo IOConnectionInfo Target file path.
return void