Share via


SoapBodyBinding.Parts プロパティ

定義

伝送時の SOAP 本体内の送信メッセージ部分を示す値を取得または設定します。

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

プロパティ値

String[]

該当するメッセージ部分の名前を含む文字列配列。

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)

注釈

SOAP が で使用されている場合など、送信されるメッセージの一部が SOAP 本文以外の部分に MimeMultipartRelatedBinding表示される場合があります。 このような場合、プロパティの他のメンバーが Extensions メッセージの他の部分の場所を決定します。

このプロパティは プロパティとまったく同じ情報を PartsString 返しますが、結果はスペース区切りの文字列内ではなく配列内で返されます。

適用対象