HttpRequest.RequestType プロパティ

定義

クライアントによって使用される HTTP データ転送メソッド (GET または POST) を取得または設定します。

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

プロパティ値

クライアントから送信される HTTP 呼び出し型を表す文字列。

次のコード例では、 メソッドを HtmlEncode 使用して プロパティの値を RequestType HTML エンコードし、 メソッドを WriteLine 使用してエンコードされた値をファイルに書き込みます。 このコード例は、HttpRequest クラスのために提供されている大規模な例の一部です。

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

適用対象