HttpMethod.Parse(ReadOnlySpan<Char>) 메서드

정의

제공된 methodHttpMethod 를 instance 구문 분석합니다.

public:
 static System::Net::Http::HttpMethod ^ Parse(ReadOnlySpan<char> method);
public static System.Net.Http.HttpMethod Parse (ReadOnlySpan<char> method);
static member Parse : ReadOnlySpan<char> -> System.Net.Http.HttpMethod
Public Shared Function Parse (method As ReadOnlySpan(Of Char)) As HttpMethod

매개 변수

method
ReadOnlySpan<Char>

구문 분석할 메서드입니다.

반환

HttpMethod 제공된 method에 대한 instance.

설명

이 메서드는 알려진 메서드에 대해 싱글톤 instance 반환할 수 있습니다. 예를 들어 "GET"이 지정된 경우 를 반환 Get 할 수 있습니다. 구문 분석이 대/소문자를 구분하지 않는 방식으로 수행되므로 "get"이 지정된 경우에도 반환 Get 될 수 있습니다. 알 수 없는 메서드의 경우 생성자가 수행하는 것과 동일한 유효성 검사를 사용하여 새 HttpMethod instance 반환됩니다HttpMethod(String).

적용 대상