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.
Ruft einen Wert ab, der angibt, ob die HTTP-Anforderung mit der GET-Methode oder der POST-Methode ausgeführt wird, oder legt diesen fest.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Syntax
'Declaration
Public Property Verb As String
'Usage
Dim instance As HttpBinding
Dim value As String
value = instance.Verb
instance.Verb = value
public string Verb { get; set; }
public:
property String^ Verb {
String^ get ();
void set (String^ value);
}
/** @property */
public String get_Verb ()
/** @property */
public void set_Verb (String value)
public function get Verb () : String
public function set Verb (value : String)
Eigenschaftenwert
Eine Zeichenfolge, die einen der beiden möglichen Werte "GET" oder "POST" enthält. Der Standardwert ist eine leere Zeichenfolge ("").
Hinweise
Im folgenden Beispiel wird eine HttpBinding erstellt und ihre Verb-Eigenschaft festgelegt.
' Create the 'HttpBinding' object.
Dim myHttpBinding As New HttpBinding()
myHttpBinding.Verb = "POST"
' Add the 'HttpBinding' to the 'Binding'.
myBinding.Extensions.Add(myHttpBinding)
// Create the 'HttpBinding' object.
HttpBinding myHttpBinding = new HttpBinding();
myHttpBinding.Verb="POST";
// Add the 'HttpBinding' to the 'Binding'.
myBinding.Extensions.Add(myHttpBinding);
// Create the 'HttpBinding' object.
HttpBinding^ myHttpBinding = gcnew HttpBinding;
myHttpBinding->Verb = "POST";
// Add the 'HttpBinding' to the 'Binding'.
myBinding->Extensions->Add( myHttpBinding );
// Create the 'HttpBinding' object.
HttpBinding myHttpBinding = new HttpBinding();
myHttpBinding.set_Verb("POST");
// Add the 'HttpBinding' to the 'Binding'.
myBinding.get_Extensions().Add(myHttpBinding);
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
HttpBinding-Klasse
HttpBinding-Member
System.Web.Services.Description-Namespace