Freigeben über


SoapBodyBinding.Encoding-Eigenschaft

Ruft eine Zeichenfolge ab, die eine durch Leerzeichen getrennte Liste von URIs enthält, oder legt diese fest. Die URIs stellen die Art oder Arten der Codierung dar, die für die Codierung von Meldungen im SOAP-body verwendet werden sollen.

Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)

Syntax

'Declaration
Public Property Encoding As String
'Usage
Dim instance As SoapBodyBinding
Dim value As String

value = instance.Encoding

instance.Encoding = value
public string Encoding { get; set; }
public:
property String^ Encoding {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_Encoding ()

/** @property */
public void set_Encoding (String value)
public function get Encoding () : String

public function set Encoding (value : String)

Eigenschaftenwert

Eine Zeichenfolge, die eine Liste von URIs enthält. Der Standardwert ist eine leere Zeichenfolge ("").

Hinweise

Der Wert dieser Eigenschaft sollte nur dann festgelegt werden, wenn der Wert der Use-Eigenschaft Encoded ist. Andernfalls wird der Wert dieser Eigenschaft ignoriert.

Beispiel

Dim mySoapBodyBinding As New SoapBodyBinding()
' Encode SOAP body using rules specified by the 'Encoding' property.
mySoapBodyBinding.Use = SoapBindingUse.Encoded
' Set URI representing the encoding style for encoding the body.
mySoapBodyBinding.Encoding = "https://schemas.xmlsoap.org/soap/encoding/"
' Set the Uri representing the location of the specification 
' for encoding of content not defined by 'Encoding' property'.
mySoapBodyBinding.Namespace = "http://tempuri.org/soapsvcmgr/"
myInputBinding.Extensions.Add(mySoapBodyBinding)
SoapBodyBinding mySoapBodyBinding = new SoapBodyBinding();
// Encode SOAP body using rules specified by the 'Encoding' property.
mySoapBodyBinding.Use = SoapBindingUse.Encoded;
// Set URI representing the encoding style for encoding the body.
mySoapBodyBinding.Encoding="https://schemas.xmlsoap.org/soap/encoding/";
// Set the Uri representing the location of the specification 
// for encoding of content not defined by 'Encoding' property'.
mySoapBodyBinding.Namespace="http://tempuri.org/soapsvcmgr/";
myInputBinding.Extensions.Add(mySoapBodyBinding);
SoapBodyBinding^ mySoapBodyBinding = gcnew SoapBodyBinding;
// Encode SOAP body using rules specified by the 'Encoding' property.
mySoapBodyBinding->Use = SoapBindingUse::Encoded;
// Set URI representing the encoding style for encoding the body.
mySoapBodyBinding->Encoding = "https://schemas.xmlsoap.org/soap/encoding/";
// Set the Uri representing the location of the specification
// for encoding of content not defined by 'Encoding' property'.
mySoapBodyBinding->Namespace = "http://tempuri.org/soapsvcmgr/";
myInputBinding->Extensions->Add( mySoapBodyBinding );
SoapBodyBinding mySoapBodyBinding = new SoapBodyBinding();
// Encode SOAP body using rules specified by the 'Encoding' property.
mySoapBodyBinding.set_Use(SoapBindingUse.Encoded);
// Set URI representing the encoding style for encoding the body.
mySoapBodyBinding.
    set_Encoding("https://schemas.xmlsoap.org/soap/encoding/");
// Set the Uri representing the location of the specification 
// for encoding of content not defined by 'Encoding' property'.
mySoapBodyBinding.set_Namespace("http://tempuri.org/soapsvcmgr/");
myInputBinding.get_Extensions().Add(mySoapBodyBinding);

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

SoapBodyBinding-Klasse
SoapBodyBinding-Member
System.Web.Services.Description-Namespace