C# Class BasicFTPClientNamespace.BasicFTPClient

Exibir arquivo Open project: mono/gert Class Usage Examples

Public Properties

Property Type Description
remoteUri string

Public Methods

Method Description
BasicFTPClient ( ) : System
DeleteFile ( string remotePath ) : void
DownloadData ( string remotePath ) : byte[]
DownloadFile ( string remotePath, string fileName ) : void
UploadData ( string remotePath, byte data ) : byte[]
UploadFile ( string remotePath, string fileName ) : byte[]

Private Methods

Method Description
BuildServerUri ( string path ) : Uri
CreateClient ( ) : WebClient
CreateEnvironmentVariableNotSetException ( string name ) : ArgumentException
GetCredentials ( ) : NetworkCredential

Method Details

BasicFTPClient() public method

public BasicFTPClient ( ) : System
return System

DeleteFile() public method

public DeleteFile ( string remotePath ) : void
remotePath string
return void

DownloadData() public method

public DownloadData ( string remotePath ) : byte[]
remotePath string
return byte[]

DownloadFile() public method

public DownloadFile ( string remotePath, string fileName ) : void
remotePath string
fileName string
return void

UploadData() public method

public UploadData ( string remotePath, byte data ) : byte[]
remotePath string
data byte
return byte[]

UploadFile() public method

public UploadFile ( string remotePath, string fileName ) : byte[]
remotePath string
fileName string
return byte[]

Property Details

remoteUri public_oe property

public string remoteUri
return string