SoapBodyBinding.Parts Propriété

Définition

Obtient ou définit une valeur indiquant quels éléments du message transmis s'affichent dans la portion du corps SOAP de la transmission.

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

Valeur de propriété

String[]

Tableau de chaînes contenant les noms des éléments de message appropriés.

Exemples

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)

Remarques

Certaines parties du message transmis peuvent apparaître dans des parties autres que le corps SOAP, par exemple lorsque SOAP est utilisé avec un MimeMultipartRelatedBinding. Dans ce cas, les autres membres de la Extensions propriété déterminent les emplacements des autres parties du message.

Cette propriété retourne exactement les mêmes informations que la PartsString propriété, mais les résultats sont retournés dans un tableau plutôt que dans une chaîne délimitée par un espace.

S’applique à