This documentation is archived and is not being maintained.
HttpBinding.Verb Property
.NET Framework 1.1
Gets or sets a value indicating whether the HTTP request will be made using the "GET" or "POST" method.
[Visual Basic] Public Property Verb As String [C#] public string Verb {get; set;} [C++] public: __property String* get_Verb(); public: __property void set_Verb(String*); [JScript] public function get Verb() : String; public function set Verb(String);
Property Value
A string containing one of two possible values, "GET" or "POST". The default value is an empty string ("").
Remarks
The following example creates a new HttpBinding and sets its Verb property.
[Visual Basic] ' Create the 'HttpBinding' object. Dim myHttpBinding As New HttpBinding() myHttpBinding.Verb = "POST" ' Add the 'HttpBinding' to the 'Binding'. myBinding.Extensions.Add(myHttpBinding) [C#] // Create the 'HttpBinding' object. HttpBinding myHttpBinding = new HttpBinding(); myHttpBinding.Verb="POST"; // Add the 'HttpBinding' to the 'Binding'. myBinding.Extensions.Add(myHttpBinding); [C++] // Create the 'HttpBinding' object. HttpBinding* myHttpBinding = new HttpBinding(); myHttpBinding->Verb=S"POST"; // Add the 'HttpBinding' to the 'Binding'. myBinding->Extensions->Add(myHttpBinding);
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
HttpBinding Class | HttpBinding Members | System.Web.Services.Description Namespace
Show: