Compartir por


HttpRequest.RequestType Propiedad

Definición

Obtiene o establece el método de transferencia de datos HTTP (GET o POST) utilizado por el cliente.

public:
 property System::String ^ RequestType { System::String ^ get(); void set(System::String ^ value); };
public string RequestType { get; set; }
member this.RequestType : string with get, set
Public Property RequestType As String

Valor de propiedad

Cadena que representa el tipo de invocación HTTP enviado por el cliente.

Ejemplos

En el ejemplo de código siguiente se usa el HtmlEncode método para codificar HTML el valor de la RequestType propiedad y el WriteLine método para escribir el valor codificado en el archivo. Este ejemplo de código forma parte de un ejemplo más grande proporcionado para la HttpRequest clase .

// Write request information to the file with HTML encoding.
sw.WriteLine(Server.HtmlEncode(Request.RequestType));
sw.WriteLine(Server.HtmlEncode(Request.UserHostAddress));
sw.WriteLine(Server.HtmlEncode(Request.UserHostName));
sw.WriteLine(Server.HtmlEncode(Request.HttpMethod));
' Write request information to the file with HTML encoding.
sw.WriteLine(Server.HtmlEncode(Request.RequestType))
sw.WriteLine(Server.HtmlEncode(Request.UserHostAddress))
sw.WriteLine(Server.HtmlEncode(Request.UserHostName))
sw.WriteLine(Server.HtmlEncode(Request.HttpMethod))

Se aplica a