SoapBodyBinding.Parts Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft welke delen van het verzonden bericht in het SOAP-hoofdgedeelte van de overdracht worden weergegeven.

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()

Waarde van eigenschap

String[]

Een tekenreeksmatrix met de namen van de juiste berichtonderdelen.

Voorbeelden

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)

Opmerkingen

Sommige delen van het verzonden bericht kunnen worden weergegeven in andere delen dan de SOAP-hoofdtekst, zoals wanneer SOAP wordt gebruikt met een MimeMultipartRelatedBinding. In dat geval bepalen de andere leden van de Extensions eigenschap de locaties van de andere onderdelen van het bericht.

Deze eigenschap retourneert precies dezelfde informatie als de PartsString eigenschap, maar de resultaten worden geretourneerd in een matrix in plaats van binnen een door spaties gescheiden tekenreeks.

Van toepassing op