C# Class KeePassLib.Serialization.IOConnection

Afficher le fichier Open project: cappert/keepass2 Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static DeleteFile ( IOConnectionInfo ioc ) : void
ioc IOConnectionInfo
Résultat void

FileExists() public static méthode

public static FileExists ( IOConnectionInfo ioc ) : bool
ioc IOConnectionInfo
Résultat bool

FileExists() public static méthode

public static FileExists ( IOConnectionInfo ioc, bool bThrowErrors ) : bool
ioc IOConnectionInfo
bThrowErrors bool
Résultat bool

OpenRead() public static méthode

public static OpenRead ( IOConnectionInfo ioc ) : Stream
ioc IOConnectionInfo
Résultat Stream

OpenWrite() public static méthode

public static OpenWrite ( IOConnectionInfo ioc ) : Stream
ioc IOConnectionInfo
Résultat Stream

ReadFile() public static méthode

public static ReadFile ( IOConnectionInfo ioc ) : byte[]
ioc IOConnectionInfo
Résultat byte[]

RenameFile() public static méthode

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.
Résultat void