SoapBodyBinding.Parts Proprietà

Definizione

Ottiene o imposta un valore che indica le parti del messaggio trasmesso che verranno visualizzate all'interno della parte del corpo SOAP della trasmissione.

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

Valore della proprietà

String[]

Matrice di stringhe contenente i nomi delle parti dei messaggi appropriati.

Esempio

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)

Commenti

Alcune parti del messaggio trasmesso possono essere visualizzate in parti diverse dal corpo SOAP, ad esempio quando soap viene usato con un oggetto MimeMultipartRelatedBinding. In tal caso, gli altri membri della Extensions proprietà determinano le posizioni delle altre parti del messaggio.

Questa proprietà restituisce esattamente le stesse informazioni della PartsString proprietà, ma i risultati vengono restituiti all'interno di una matrice anziché all'interno di una stringa delimitata da spazi.

Si applica a