Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gibt an, ob die Teile der Meldung mit angegebenen Codierungsregeln codiert werden, oder definiert das konkrete Schema der Meldung.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Property Use As SoapBindingUse
'Usage
Dim instance As SoapBodyBinding
Dim value As SoapBindingUse
value = instance.Use
instance.Use = value
public SoapBindingUse Use { get; set; }
public:
property SoapBindingUse Use {
SoapBindingUse get ();
void set (SoapBindingUse value);
}
/** @property */
public SoapBindingUse get_Use ()
/** @property */
public void set_Use (SoapBindingUse value)
public function get Use () : SoapBindingUse
public function set Use (value : SoapBindingUse)
Eigenschaftenwert
Einer der SoapBindingUse-Werte. Der Standardwert ist Default.
Hinweise
Die Namespace-Eigenschaft und die Encoding-Eigenschaft hängen vom Wert dieser Eigenschaft ab. Ihre Werte sollten nur dann festgelegt werden, wenn der Wert dieser Eigenschaft Encoded ist. Andernfalls erzeugt der XML-Webdienst ein unerwartetes Verhalten.
Beispiel
' Create the 'InputBinding' object for the 'SOAP' protocol.
Dim myInput As New InputBinding()
Dim mySoapBinding1 As New SoapBodyBinding()
mySoapBinding1.Use = SoapBindingUse.Literal
myInput.Extensions.Add(mySoapBinding1)
' Add the 'InputBinding' object to 'OperationBinding' object.
myOperationBinding.Input = myInput
' Create the 'OutputBinding' object'.
Dim myOutput As New OutputBinding()
myOutput.Extensions.Add(mySoapBinding1)
' Add the 'OutputBinding' object to 'OperationBinding' object.
myOperationBinding.Output = myOutput
' Add the 'OperationBinding' object to 'Binding' object.
myBinding.Operations.Add(myOperationBinding)
' Add the 'Binding' object to the ServiceDescription instance.
myDescription.Bindings.Add(myBinding)
// Create the 'InputBinding' object for the 'SOAP' protocol.
InputBinding myInput = new InputBinding();
SoapBodyBinding mySoapBinding1 = new SoapBodyBinding();
mySoapBinding1.Use= SoapBindingUse.Literal;
myInput.Extensions.Add(mySoapBinding1);
// Add the 'InputBinding' object to 'OperationBinding' object.
myOperationBinding.Input = myInput;
// Create the 'OutputBinding' object'.
OutputBinding myOutput = new OutputBinding();
myOutput.Extensions.Add(mySoapBinding1);
// Add the 'OutputBinding' object to 'OperationBinding' object.
myOperationBinding.Output = myOutput;
// Add the 'OperationBinding' object to 'Binding' object.
myBinding.Operations.Add(myOperationBinding);
// Add the 'Binding' object to the ServiceDescription instance.
myDescription.Bindings.Add(myBinding);
// Create the 'InputBinding' object for the 'SOAP' protocol.
InputBinding^ myInput = gcnew InputBinding;
SoapBodyBinding^ mySoapBinding1 = gcnew SoapBodyBinding;
mySoapBinding1->Use = SoapBindingUse::Literal;
myInput->Extensions->Add( mySoapBinding1 );
// Add the 'InputBinding' object to 'OperationBinding' object.
myOperationBinding->Input = myInput;
// Create the 'OutputBinding' object'.
OutputBinding^ myOutput = gcnew OutputBinding;
myOutput->Extensions->Add( mySoapBinding1 );
// Add the 'OutputBinding' object to 'OperationBinding' object.
myOperationBinding->Output = myOutput;
// Add the 'OperationBinding' object to 'Binding' object.
myBinding->Operations->Add( myOperationBinding );
// Add the 'Binding' object to the ServiceDescription instance.
myDescription->Bindings->Add( myBinding );
// Create the 'InputBinding' object for the 'SOAP' protocol.
InputBinding myInput = new InputBinding();
SoapBodyBinding mySoapBinding1 = new SoapBodyBinding();
mySoapBinding1.set_Use(SoapBindingUse.Literal);
myInput.get_Extensions().Add(mySoapBinding1);
// Add the 'InputBinding' object to 'OperationBinding' object.
myOperationBinding.set_Input(myInput);
// Create the 'OutputBinding' object'.
OutputBinding myOutput = new OutputBinding();
myOutput.get_Extensions().Add(mySoapBinding1);
// Add the 'OutputBinding' object to 'OperationBinding' object.
myOperationBinding.set_Output(myOutput);
// Add the 'OperationBinding' object to 'Binding' object.
myBinding.get_Operations().Add(myOperationBinding);
// Add the 'Binding' object to the ServiceDescription instance.
myDescription.get_Bindings().Add(myBinding);
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
SoapBodyBinding-Klasse
SoapBodyBinding-Member
System.Web.Services.Description-Namespace