This documentation is archived and is not being maintained.

HttpRequest.RequestType Property

Gets or sets the HTTP data transfer method (GET or POST) used by the client.

[Visual Basic]
Public Property RequestType As String
public string RequestType {get; set;}
public: __property String* get_RequestType();
public: __property void set_RequestType(String*);
public function get RequestType() : String;
public function set RequestType(String);

Property Value

A String representing the HTTP invocation type sent by the client.


The following example assigns a value representing the HTTP request type to a string variable.

[Visual Basic] 
Dim str As String
 str = Request.RequestType

String str;
 str = Request.RequestType;

String* str;
 str = Request->RequestType;

var str : String = Request.RequestType


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpRequest Class | HttpRequest Members | System.Web Namespace