C# Class System.Net.WebClient

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Private Properties

Свойство Type Description
OnWriteStreamClosed void

Méthodes publiques

Méthode Description
CancelAsync ( ) : void
DownloadData ( System address ) : byte[]
DownloadData ( string address ) : byte[]
DownloadDataAsync ( System address ) : void
DownloadDataAsync ( System address, object userToken ) : void
DownloadDataTaskAsync ( System address ) : System.Threading.Tasks.Task
DownloadDataTaskAsync ( string address ) : System.Threading.Tasks.Task
DownloadFile ( System address, string fileName ) : void
DownloadFile ( string address, string fileName ) : void
DownloadFileAsync ( System address, string fileName ) : void
DownloadFileAsync ( System address, string fileName, object userToken ) : void
DownloadFileTaskAsync ( System address, string fileName ) : System.Threading.Tasks.Task
DownloadFileTaskAsync ( string address, string fileName ) : System.Threading.Tasks.Task
DownloadString ( System address ) : string
DownloadString ( string address ) : string
DownloadStringAsync ( System address ) : void
DownloadStringAsync ( System address, object userToken ) : void
DownloadStringTaskAsync ( System address ) : System.Threading.Tasks.Task
DownloadStringTaskAsync ( string address ) : System.Threading.Tasks.Task
OpenRead ( System address ) : System.IO.Stream
OpenRead ( string address ) : System.IO.Stream
OpenReadAsync ( System address ) : void
OpenReadAsync ( System address, object userToken ) : void
OpenReadTaskAsync ( System address ) : System.Threading.Tasks.Task
OpenReadTaskAsync ( string address ) : System.Threading.Tasks.Task
OpenWrite ( System address ) : System.IO.Stream
OpenWrite ( System address, string method ) : System.IO.Stream
OpenWrite ( string address ) : System.IO.Stream
OpenWrite ( string address, string method ) : System.IO.Stream
OpenWriteAsync ( System address ) : void
OpenWriteAsync ( System address, string method ) : void
OpenWriteAsync ( System address, string method, object userToken ) : void
OpenWriteTaskAsync ( System address ) : System.Threading.Tasks.Task
OpenWriteTaskAsync ( System address, string method ) : System.Threading.Tasks.Task
OpenWriteTaskAsync ( string address ) : System.Threading.Tasks.Task
OpenWriteTaskAsync ( string address, string method ) : System.Threading.Tasks.Task
UploadData ( System address, byte data ) : byte[]
UploadData ( System address, string method, byte data ) : byte[]
UploadData ( string address, byte data ) : byte[]
UploadData ( string address, string method, byte data ) : byte[]
UploadDataAsync ( System address, byte data ) : void
UploadDataAsync ( System address, string method, byte data ) : void
UploadDataAsync ( System address, string method, byte data, object userToken ) : void
UploadDataTaskAsync ( System address, byte data ) : System.Threading.Tasks.Task
UploadDataTaskAsync ( System address, string method, byte data ) : System.Threading.Tasks.Task
UploadDataTaskAsync ( string address, byte data ) : System.Threading.Tasks.Task
UploadDataTaskAsync ( string address, string method, byte data ) : System.Threading.Tasks.Task
UploadFile ( System address, string fileName ) : byte[]
UploadFile ( System address, string method, string fileName ) : byte[]
UploadFile ( string address, string fileName ) : byte[]
UploadFile ( string address, string method, string fileName ) : byte[]
UploadFileAsync ( System address, string fileName ) : void
UploadFileAsync ( System address, string method, string fileName ) : void
UploadFileAsync ( System address, string method, string fileName, object userToken ) : void
UploadFileTaskAsync ( System address, string fileName ) : System.Threading.Tasks.Task
UploadFileTaskAsync ( System address, string method, string fileName ) : System.Threading.Tasks.Task
UploadFileTaskAsync ( string address, string fileName ) : System.Threading.Tasks.Task
UploadFileTaskAsync ( string address, string method, string fileName ) : System.Threading.Tasks.Task
UploadString ( System address, string data ) : string
UploadString ( System address, string method, string data ) : string
UploadString ( string address, string data ) : string
UploadString ( string address, string method, string data ) : string
UploadStringAsync ( System address, string data ) : void
UploadStringAsync ( System address, string method, string data ) : void
UploadStringAsync ( System address, string method, string data, object userToken ) : void
UploadStringTaskAsync ( System address, string data ) : System.Threading.Tasks.Task
UploadStringTaskAsync ( System address, string method, string data ) : System.Threading.Tasks.Task
UploadStringTaskAsync ( string address, string data ) : System.Threading.Tasks.Task
UploadStringTaskAsync ( string address, string method, string data ) : System.Threading.Tasks.Task
UploadValues ( System address, System data ) : byte[]
UploadValues ( System address, string method, System data ) : byte[]
UploadValues ( string address, System data ) : byte[]
UploadValues ( string address, string method, System data ) : byte[]
UploadValuesAsync ( System address, System data ) : void
UploadValuesAsync ( System address, string method, System data ) : void
UploadValuesAsync ( System address, string method, System data, object userToken ) : void
UploadValuesTaskAsync ( System address, System data ) : System.Threading.Tasks.Task
UploadValuesTaskAsync ( System address, string method, System data ) : System.Threading.Tasks.Task
UploadValuesTaskAsync ( string address, System data ) : System.Threading.Tasks.Task
UploadValuesTaskAsync ( string address, string method, System data ) : System.Threading.Tasks.Task
WebClient ( )

Méthodes protégées

Méthode Description
GetWebRequest ( System address ) : System.Net.WebRequest
GetWebResponse ( System request ) : System.Net.WebResponse
GetWebResponse ( System request, System result ) : System.Net.WebResponse
OnDownloadDataCompleted ( System e ) : void
OnDownloadFileCompleted ( System e ) : void
OnDownloadProgressChanged ( System e ) : void
OnDownloadStringCompleted ( System e ) : void
OnOpenReadCompleted ( System e ) : void
OnOpenWriteCompleted ( System e ) : void
OnUploadDataCompleted ( System e ) : void
OnUploadFileCompleted ( System e ) : void
OnUploadProgressChanged ( System e ) : void
OnUploadStringCompleted ( System e ) : void
OnUploadValuesCompleted ( System e ) : void

Private Methods

Méthode Description
OnWriteStreamClosed ( System e ) : void

Method Details

CancelAsync() public méthode

public CancelAsync ( ) : void
Résultat void

DownloadData() public méthode

public DownloadData ( System address ) : byte[]
address System
Résultat byte[]

DownloadData() public méthode

public DownloadData ( string address ) : byte[]
address string
Résultat byte[]

DownloadDataAsync() public méthode

public DownloadDataAsync ( System address ) : void
address System
Résultat void

DownloadDataAsync() public méthode

public DownloadDataAsync ( System address, object userToken ) : void
address System
userToken object
Résultat void

DownloadDataTaskAsync() public méthode

public DownloadDataTaskAsync ( System address ) : System.Threading.Tasks.Task
address System
Résultat System.Threading.Tasks.Task

DownloadDataTaskAsync() public méthode

public DownloadDataTaskAsync ( string address ) : System.Threading.Tasks.Task
address string
Résultat System.Threading.Tasks.Task

DownloadFile() public méthode

public DownloadFile ( System address, string fileName ) : void
address System
fileName string
Résultat void

DownloadFile() public méthode

public DownloadFile ( string address, string fileName ) : void
address string
fileName string
Résultat void

DownloadFileAsync() public méthode

public DownloadFileAsync ( System address, string fileName ) : void
address System
fileName string
Résultat void

DownloadFileAsync() public méthode

public DownloadFileAsync ( System address, string fileName, object userToken ) : void
address System
fileName string
userToken object
Résultat void

DownloadFileTaskAsync() public méthode

public DownloadFileTaskAsync ( System address, string fileName ) : System.Threading.Tasks.Task
address System
fileName string
Résultat System.Threading.Tasks.Task

DownloadFileTaskAsync() public méthode

public DownloadFileTaskAsync ( string address, string fileName ) : System.Threading.Tasks.Task
address string
fileName string
Résultat System.Threading.Tasks.Task

DownloadString() public méthode

public DownloadString ( System address ) : string
address System
Résultat string

DownloadString() public méthode

public DownloadString ( string address ) : string
address string
Résultat string

DownloadStringAsync() public méthode

public DownloadStringAsync ( System address ) : void
address System
Résultat void

DownloadStringAsync() public méthode

public DownloadStringAsync ( System address, object userToken ) : void
address System
userToken object
Résultat void

DownloadStringTaskAsync() public méthode

public DownloadStringTaskAsync ( System address ) : System.Threading.Tasks.Task
address System
Résultat System.Threading.Tasks.Task

DownloadStringTaskAsync() public méthode

public DownloadStringTaskAsync ( string address ) : System.Threading.Tasks.Task
address string
Résultat System.Threading.Tasks.Task

GetWebRequest() protected méthode

protected GetWebRequest ( System address ) : System.Net.WebRequest
address System
Résultat System.Net.WebRequest

GetWebResponse() protected méthode

protected GetWebResponse ( System request ) : System.Net.WebResponse
request System
Résultat System.Net.WebResponse

GetWebResponse() protected méthode

protected GetWebResponse ( System request, System result ) : System.Net.WebResponse
request System
result System
Résultat System.Net.WebResponse

OnDownloadDataCompleted() protected méthode

protected OnDownloadDataCompleted ( System e ) : void
e System
Résultat void

OnDownloadFileCompleted() protected méthode

protected OnDownloadFileCompleted ( System e ) : void
e System
Résultat void

OnDownloadProgressChanged() protected méthode

protected OnDownloadProgressChanged ( System e ) : void
e System
Résultat void

OnDownloadStringCompleted() protected méthode

protected OnDownloadStringCompleted ( System e ) : void
e System
Résultat void

OnOpenReadCompleted() protected méthode

protected OnOpenReadCompleted ( System e ) : void
e System
Résultat void

OnOpenWriteCompleted() protected méthode

protected OnOpenWriteCompleted ( System e ) : void
e System
Résultat void

OnUploadDataCompleted() protected méthode

protected OnUploadDataCompleted ( System e ) : void
e System
Résultat void

OnUploadFileCompleted() protected méthode

protected OnUploadFileCompleted ( System e ) : void
e System
Résultat void

OnUploadProgressChanged() protected méthode

protected OnUploadProgressChanged ( System e ) : void
e System
Résultat void

OnUploadStringCompleted() protected méthode

protected OnUploadStringCompleted ( System e ) : void
e System
Résultat void

OnUploadValuesCompleted() protected méthode

protected OnUploadValuesCompleted ( System e ) : void
e System
Résultat void

OpenRead() public méthode

public OpenRead ( System address ) : System.IO.Stream
address System
Résultat System.IO.Stream

OpenRead() public méthode

public OpenRead ( string address ) : System.IO.Stream
address string
Résultat System.IO.Stream

OpenReadAsync() public méthode

public OpenReadAsync ( System address ) : void
address System
Résultat void

OpenReadAsync() public méthode

public OpenReadAsync ( System address, object userToken ) : void
address System
userToken object
Résultat void

OpenReadTaskAsync() public méthode

public OpenReadTaskAsync ( System address ) : System.Threading.Tasks.Task
address System
Résultat System.Threading.Tasks.Task

OpenReadTaskAsync() public méthode

public OpenReadTaskAsync ( string address ) : System.Threading.Tasks.Task
address string
Résultat System.Threading.Tasks.Task

OpenWrite() public méthode

public OpenWrite ( System address ) : System.IO.Stream
address System
Résultat System.IO.Stream

OpenWrite() public méthode

public OpenWrite ( System address, string method ) : System.IO.Stream
address System
method string
Résultat System.IO.Stream

OpenWrite() public méthode

public OpenWrite ( string address ) : System.IO.Stream
address string
Résultat System.IO.Stream

OpenWrite() public méthode

public OpenWrite ( string address, string method ) : System.IO.Stream
address string
method string
Résultat System.IO.Stream

OpenWriteAsync() public méthode

public OpenWriteAsync ( System address ) : void
address System
Résultat void

OpenWriteAsync() public méthode

public OpenWriteAsync ( System address, string method ) : void
address System
method string
Résultat void

OpenWriteAsync() public méthode

public OpenWriteAsync ( System address, string method, object userToken ) : void
address System
method string
userToken object
Résultat void

OpenWriteTaskAsync() public méthode

public OpenWriteTaskAsync ( System address ) : System.Threading.Tasks.Task
address System
Résultat System.Threading.Tasks.Task

OpenWriteTaskAsync() public méthode

public OpenWriteTaskAsync ( System address, string method ) : System.Threading.Tasks.Task
address System
method string
Résultat System.Threading.Tasks.Task

OpenWriteTaskAsync() public méthode

public OpenWriteTaskAsync ( string address ) : System.Threading.Tasks.Task
address string
Résultat System.Threading.Tasks.Task

OpenWriteTaskAsync() public méthode

public OpenWriteTaskAsync ( string address, string method ) : System.Threading.Tasks.Task
address string
method string
Résultat System.Threading.Tasks.Task

UploadData() public méthode

public UploadData ( System address, byte data ) : byte[]
address System
data byte
Résultat byte[]

UploadData() public méthode

public UploadData ( System address, string method, byte data ) : byte[]
address System
method string
data byte
Résultat byte[]

UploadData() public méthode

public UploadData ( string address, byte data ) : byte[]
address string
data byte
Résultat byte[]

UploadData() public méthode

public UploadData ( string address, string method, byte data ) : byte[]
address string
method string
data byte
Résultat byte[]

UploadDataAsync() public méthode

public UploadDataAsync ( System address, byte data ) : void
address System
data byte
Résultat void

UploadDataAsync() public méthode

public UploadDataAsync ( System address, string method, byte data ) : void
address System
method string
data byte
Résultat void

UploadDataAsync() public méthode

public UploadDataAsync ( System address, string method, byte data, object userToken ) : void
address System
method string
data byte
userToken object
Résultat void

UploadDataTaskAsync() public méthode

public UploadDataTaskAsync ( System address, byte data ) : System.Threading.Tasks.Task
address System
data byte
Résultat System.Threading.Tasks.Task

UploadDataTaskAsync() public méthode

public UploadDataTaskAsync ( System address, string method, byte data ) : System.Threading.Tasks.Task
address System
method string
data byte
Résultat System.Threading.Tasks.Task

UploadDataTaskAsync() public méthode

public UploadDataTaskAsync ( string address, byte data ) : System.Threading.Tasks.Task
address string
data byte
Résultat System.Threading.Tasks.Task

UploadDataTaskAsync() public méthode

public UploadDataTaskAsync ( string address, string method, byte data ) : System.Threading.Tasks.Task
address string
method string
data byte
Résultat System.Threading.Tasks.Task

UploadFile() public méthode

public UploadFile ( System address, string fileName ) : byte[]
address System
fileName string
Résultat byte[]

UploadFile() public méthode

public UploadFile ( System address, string method, string fileName ) : byte[]
address System
method string
fileName string
Résultat byte[]

UploadFile() public méthode

public UploadFile ( string address, string fileName ) : byte[]
address string
fileName string
Résultat byte[]

UploadFile() public méthode

public UploadFile ( string address, string method, string fileName ) : byte[]
address string
method string
fileName string
Résultat byte[]

UploadFileAsync() public méthode

public UploadFileAsync ( System address, string fileName ) : void
address System
fileName string
Résultat void

UploadFileAsync() public méthode

public UploadFileAsync ( System address, string method, string fileName ) : void
address System
method string
fileName string
Résultat void

UploadFileAsync() public méthode

public UploadFileAsync ( System address, string method, string fileName, object userToken ) : void
address System
method string
fileName string
userToken object
Résultat void

UploadFileTaskAsync() public méthode

public UploadFileTaskAsync ( System address, string fileName ) : System.Threading.Tasks.Task
address System
fileName string
Résultat System.Threading.Tasks.Task

UploadFileTaskAsync() public méthode

public UploadFileTaskAsync ( System address, string method, string fileName ) : System.Threading.Tasks.Task
address System
method string
fileName string
Résultat System.Threading.Tasks.Task

UploadFileTaskAsync() public méthode

public UploadFileTaskAsync ( string address, string fileName ) : System.Threading.Tasks.Task
address string
fileName string
Résultat System.Threading.Tasks.Task

UploadFileTaskAsync() public méthode

public UploadFileTaskAsync ( string address, string method, string fileName ) : System.Threading.Tasks.Task
address string
method string
fileName string
Résultat System.Threading.Tasks.Task

UploadString() public méthode

public UploadString ( System address, string data ) : string
address System
data string
Résultat string

UploadString() public méthode

public UploadString ( System address, string method, string data ) : string
address System
method string
data string
Résultat string

UploadString() public méthode

public UploadString ( string address, string data ) : string
address string
data string
Résultat string

UploadString() public méthode

public UploadString ( string address, string method, string data ) : string
address string
method string
data string
Résultat string

UploadStringAsync() public méthode

public UploadStringAsync ( System address, string data ) : void
address System
data string
Résultat void

UploadStringAsync() public méthode

public UploadStringAsync ( System address, string method, string data ) : void
address System
method string
data string
Résultat void

UploadStringAsync() public méthode

public UploadStringAsync ( System address, string method, string data, object userToken ) : void
address System
method string
data string
userToken object
Résultat void

UploadStringTaskAsync() public méthode

public UploadStringTaskAsync ( System address, string data ) : System.Threading.Tasks.Task
address System
data string
Résultat System.Threading.Tasks.Task

UploadStringTaskAsync() public méthode

public UploadStringTaskAsync ( System address, string method, string data ) : System.Threading.Tasks.Task
address System
method string
data string
Résultat System.Threading.Tasks.Task

UploadStringTaskAsync() public méthode

public UploadStringTaskAsync ( string address, string data ) : System.Threading.Tasks.Task
address string
data string
Résultat System.Threading.Tasks.Task

UploadStringTaskAsync() public méthode

public UploadStringTaskAsync ( string address, string method, string data ) : System.Threading.Tasks.Task
address string
method string
data string
Résultat System.Threading.Tasks.Task

UploadValues() public méthode

public UploadValues ( System address, System data ) : byte[]
address System
data System
Résultat byte[]

UploadValues() public méthode

public UploadValues ( System address, string method, System data ) : byte[]
address System
method string
data System
Résultat byte[]

UploadValues() public méthode

public UploadValues ( string address, System data ) : byte[]
address string
data System
Résultat byte[]

UploadValues() public méthode

public UploadValues ( string address, string method, System data ) : byte[]
address string
method string
data System
Résultat byte[]

UploadValuesAsync() public méthode

public UploadValuesAsync ( System address, System data ) : void
address System
data System
Résultat void

UploadValuesAsync() public méthode

public UploadValuesAsync ( System address, string method, System data ) : void
address System
method string
data System
Résultat void

UploadValuesAsync() public méthode

public UploadValuesAsync ( System address, string method, System data, object userToken ) : void
address System
method string
data System
userToken object
Résultat void

UploadValuesTaskAsync() public méthode

public UploadValuesTaskAsync ( System address, System data ) : System.Threading.Tasks.Task
address System
data System
Résultat System.Threading.Tasks.Task

UploadValuesTaskAsync() public méthode

public UploadValuesTaskAsync ( System address, string method, System data ) : System.Threading.Tasks.Task
address System
method string
data System
Résultat System.Threading.Tasks.Task

UploadValuesTaskAsync() public méthode

public UploadValuesTaskAsync ( string address, System data ) : System.Threading.Tasks.Task
address string
data System
Résultat System.Threading.Tasks.Task

UploadValuesTaskAsync() public méthode

public UploadValuesTaskAsync ( string address, string method, System data ) : System.Threading.Tasks.Task
address string
method string
data System
Résultat System.Threading.Tasks.Task

WebClient() public méthode

public WebClient ( )