HttpBinding.Verb Property

Gets or sets a value indicating whether the HTTP request will be made using the "GET" or "POST" method.

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

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)

Not applicable.

Property Value

A string containing one of two possible values, "GET" or "POST". The default value is an empty string ("").

The following example creates a new HttpBinding and sets its Verb property.

// 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);

Windows 98, Windows Server 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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: