Share via


SoapEnvelope.Encoding Property

Gets or sets the character encoding for the SOAP envelope.

Namespace: Microsoft.Web.Services2
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim soapEnvelope1 As SoapEnvelope

Dim returnValue As Encoding
returnValue = soapEnvelope1.Encoding

Dim sampleValue As Encoding
soapEnvelope1.Encoding = sampleValue

Syntax

'Declaration
Public Property Encoding() As Encoding
public Encoding Encoding {get; set;}
public: property Encoding^ Encoding{
    Encoding^ get();
    Void set(Encoding^);
}
public Encoding get_Encoding();
public void set_Encoding(Encoding);
public function get Encoding() : Encoding;
public function set Encoding(Encoding);

Property Value

An System.Text.Encoding that specifies the character encoding type for the SOAP envelope. The default is System.Text.UTF8Encoding without a Unicode byte order mark.

Remarks

If you set the Encoding property to a System.Text.UTF8Encoding with a Unicode byte order mark, the value of Encoding will be saved as a System.Text.UTF8Encoding without a Unicode byte order mark.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

SoapEnvelope Class
Microsoft.Web.Services2 Namespace

Other Resources

SoapEnvelope Members