Språk

SoapBodyBinding.Parts Egenskap

Definition

Hämtar eller anger ett värde som anger vilka delar av det sända meddelandet som visas i SOAP-brödtextdelen av överföringen.

public:
 property cli::array <System::String ^> ^ Parts { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public string[] Parts { get; set; }
member this.Parts : string[] with get, set
Public Property Parts As String()

Egenskapsvärde

String[]

En strängmatris som innehåller namnen på lämpliga meddelandedelar.

Exempel

SoapBinding^ mySoapBinding = gcnew SoapBinding;
mySoapBinding->Transport = "http://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.Transport = "http://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);
Dim mySoapBinding As New SoapBinding()
mySoapBinding.Transport = "http://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)

Kommentarer

Vissa delar av det överförda meddelandet kan visas i andra delar än SOAP-brödtexten, till exempel när SOAP används med en MimeMultipartRelatedBinding. I sådana fall bestämmer de andra medlemmarna i Extensions egenskapen platserna för de andra delarna av meddelandet.

Den här egenskapen returnerar exakt samma information som PartsString egenskapen, men resultatet returneras i en matris i stället för inom en blankstegsavgränsad sträng.

Gäller för