編集

次の方法で共有


SoapBinding.Style Property

Definition

Specifies the type of SOAP binding used by the current SoapBinding.

public:
 property System::Web::Services::Description::SoapBindingStyle Style { System::Web::Services::Description::SoapBindingStyle get(); void set(System::Web::Services::Description::SoapBindingStyle value); };
public System.Web.Services.Description.SoapBindingStyle Style { get; set; }
member this.Style : System.Web.Services.Description.SoapBindingStyle with get, set
Public Property Style As SoapBindingStyle

Property Value

One of the SoapBindingStyle values. The default is Document.

Examples

SoapBinding^ mySoapBinding = gcnew SoapBinding;
mySoapBinding->Transport = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding->Style = SoapBindingStyle::Document;

// Add the 'SoapBinding' object to the 'Binding' object.
myBinding->Extensions->Add( mySoapBinding );
SoapBinding mySoapBinding = new SoapBinding();
mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http";
mySoapBinding.Style = SoapBindingStyle.Document;
// Add the 'SoapBinding' object to the 'Binding' object.
myBinding.Extensions.Add(mySoapBinding);
Dim mySoapBinding As New SoapBinding()
mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http"
mySoapBinding.Style = SoapBindingStyle.Document
' Add the 'SoapBinding' object to the 'Binding' object.
myBinding.Extensions.Add(mySoapBinding)

Applies to