Freigeben über


SoapBodyBinding.Parts-Eigenschaft

Ruft einen Wert ab, der angibt, welche Teile der übertragenen Meldung sich im SOAP-Body-Teil der Übertragung befinden, oder legt diesen fest.

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

Syntax

'Declaration
Public Property Parts As String()
'Usage
Dim instance As SoapBodyBinding
Dim value As String()

value = instance.Parts

instance.Parts = value
public string[] Parts { get; set; }
public:
property array<String^>^ Parts {
    array<String^>^ get ();
    void set (array<String^>^ value);
}
/** @property */
public String[] get_Parts ()

/** @property */
public void set_Parts (String[] value)
public function get Parts () : String[]

public function set Parts (value : String[])

Eigenschaftenwert

Ein Zeichenfolgenarray, das die Namen der entsprechenden Meldungsteile enthält.

Hinweise

Einige Teile der übermittelten Meldung können sich in Teilen außerhalb des SOAP-Body befinden, z. B. wenn SOAP mit einem MimeMultipartRelatedBinding verwendet wird. In einem solchen Fall bestimmen die anderen Member der Extensions-Eigenschaft die Speicherorte der anderen Meldungsteile.

Diese Eigenschaft gibt genau dieselben Informationen zurück wie die PartsString-Eigenschaft. Allerdings werden die Ergebnisse in einem Array statt in einer durch Leerzeichen getrennten Zeichenfolge zurückgegeben.

Beispiel

Dim mySoapBinding As New SoapBinding()
mySoapBinding.Transport = "https://schemas.xmlsoap.org/soap/http"
mySoapBinding.Style = SoapBindingStyle.Document
' Get the URI for XML namespace of the SoapBinding class.
Dim myNameSpace As String = SoapBinding.Namespace
Console.WriteLine("The URI of the XML Namespace is :" + myNameSpace)
SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.Transport = "https://schemas.xmlsoap.org/soap/http";
mySoapBinding.Style = SoapBindingStyle.Document;
// Get the URI for XML namespace of the SoapBinding class.
String myNameSpace = SoapBinding.Namespace;
Console.WriteLine("The URI of the XML Namespace is :"+myNameSpace);
SoapBinding^ mySoapBinding = gcnew SoapBinding;
mySoapBinding->Transport = "https://schemas.xmlsoap.org/soap/http";
mySoapBinding->Style = SoapBindingStyle::Document;
// Get the URI for XML namespace of the SoapBinding class.
String^ myNameSpace = SoapBinding::Namespace;
Console::WriteLine( "The URI of the XML Namespace is :{0}", myNameSpace );
SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.set_Transport("https://schemas.xmlsoap.org/soap/http");
mySoapBinding.set_Style(SoapBindingStyle.Document);
// Get the URI for XML namespace of the SoapBinding class.
String myNameSpace = SoapBinding.Namespace;
Console.WriteLine("The URI of the XML Namespace is :" + myNameSpace);

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