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

속성 값

String

클라이언트에서 보낸 HTTP 호출 형식을 나타내는 문자열입니다.

예제

다음 코드 예제에서는 메서드를 HtmlEncode 사용하여 속성 값 RequestTypeWriteLine 메서드를 HTML로 인코딩하여 인코딩된 값을 파일에 씁니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 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))

적용 대상