EN
Ce contenu n’est pas disponible dans votre langue. Voici la version anglaise.
Ce sujet n'a pas encore été évalué - Évaluez ce sujet

WebClient.Encoding Property

May 02, 2013

Gets and sets the Encoding used to upload and download strings.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)
'Déclaration
Public Property Encoding As Encoding

Property Value

Type: System.Text.Encoding
A Encoding that is used to encode strings. The default value of this property is UTF8.
ExceptionCondition
ArgumentNullException

A Nothing value was passed to set this property.

The UploadStringAsync methods use this property to convert the specified string to a Byte array before uploading the string. For additional information, see the GetBytes method.

When a string is downloaded using the DownloadStringAsync methods, WebClient uses the Encoding returned by this to convert the downloaded Byte array into a string. For additional information, see the GetString method.

Windows Phone OS

Supported in: 8.0, 7.1, 7.0

Windows Phone

Cela vous a-t-il été utile ?
(1500 caractères restants)
© 2013 Microsoft. Tous droits réservés.