Freigeben über


SoapOperationBinding.Style-Eigenschaft

Gibt den Typ der SOAP-Bindung zurück, der von SoapOperationBinding verwendet wird, oder legt diesen fest.

Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)

Syntax

'Declaration
Public Property Style As SoapBindingStyle
'Usage
Dim instance As SoapOperationBinding
Dim value As SoapBindingStyle

value = instance.Style

instance.Style = value
public SoapBindingStyle Style { get; set; }
public:
property SoapBindingStyle Style {
    SoapBindingStyle get ();
    void set (SoapBindingStyle value);
}
/** @property */
public SoapBindingStyle get_Style ()

/** @property */
public void set_Style (SoapBindingStyle value)
public function get Style () : SoapBindingStyle

public function set Style (value : SoapBindingStyle)

Eigenschaftenwert

Einer der SoapBindingStyle-Werte. Der Standardwert ist Document.

Beispiel

' 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)
// 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.
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.set_SoapAction("http://tempuri.org/AddNumbers");
mySoapOperationBinding.set_Style(SoapBindingStyle.Document);
// Add the 'SoapOperationBinding' object to 'OperationBinding' object.
myOperationBinding.get_Extensions().Add(mySoapOperationBinding);

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

SoapOperationBinding-Klasse
SoapOperationBinding-Member
System.Web.Services.Description-Namespace