次の方法で共有


SoapBodyBinding.Parts プロパティ

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

Public Property Parts As String ()
[C#]
public string[] Parts {get; set;}
[C++]
public: __property String* get_Parts();public: __property void set_Parts(String* __gc[]);
[JScript]
public function get Parts() : String[];
public function set Parts(String[]);

プロパティ値

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

解説

SOAP が MimeMultipartRelatedBinding で使用されるときなどに、送信されるメッセージの一部を SOAP 本体以外にも表示できます。このような場合は、 Extensions プロパティのほかのメンバによって、メッセージのほかの部分の位置を決定します。

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

使用例

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

[C#] 
SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.Transport = "https://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);

[C++] 
SoapBinding* mySoapBinding = new SoapBinding();
mySoapBinding->Transport = S"https://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(S"The URI of the XML Namespace is :{0}", myNameSpace);

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

SoapBodyBinding クラス | SoapBodyBinding メンバ | System.Web.Services.Description 名前空間