次の方法で共有


SoapOperationBinding.SoapAction プロパティ

定義

SOAP ヘッダーの URI を取得または設定します。

public:
 property System::String ^ SoapAction { System::String ^ get(); void set(System::String ^ value); };
public string SoapAction { get; set; }
member this.SoapAction : string with get, set
Public Property SoapAction As String

プロパティ値

String

SOAP ヘッダーの URI を含む文字列。

// Create the 'SoapOperationBinding' object for the 'SOAP' protocol.
SoapOperationBinding^ mySoapOperationBinding = gcnew SoapOperationBinding;
mySoapOperationBinding->SoapAction = "http://tempuri.org/AddNumbers";
mySoapOperationBinding->Style = SoapBindingStyle::Document;

// Add the 'SoapOperationBinding' object to 'OperationBinding' object.
myOperationBinding->Extensions->Add( mySoapOperationBinding );
// Create the 'SoapOperationBinding' object for the 'SOAP' protocol.
SoapOperationBinding mySoapOperationBinding =
                                 new SoapOperationBinding();
mySoapOperationBinding.SoapAction  = "http://tempuri.org/AddNumbers";
mySoapOperationBinding.Style = SoapBindingStyle.Document;
// Add the 'SoapOperationBinding' object to 'OperationBinding' object.
myOperationBinding.Extensions.Add(mySoapOperationBinding);
' Create the 'SoapOperationBinding' object for the 'SOAP' protocol.
Dim mySoapOperationBinding As New SoapOperationBinding()
mySoapOperationBinding.SoapAction = "http://tempuri.org/AddNumbers"
mySoapOperationBinding.Style = SoapBindingStyle.Document
' Add the 'SoapOperationBinding' object to 'OperationBinding' object.
myOperationBinding.Extensions.Add(mySoapOperationBinding)

注釈

このプロパティは、SOAP の HTTP プロトコル バインドに必要です。 既定値は空の文字列 ("") です。

適用対象