HttpMethod.Parse(ReadOnlySpan<Char>) Yöntem

Tanım

Sağlanan method öğesini bir örneğe ayrıştırıyor HttpMethod .

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

Parametreler

method
ReadOnlySpan<Char>

Ayrıştırma yöntemi.

Döndürülenler

Sağlanan methodiçin bir HttpMethod örnek.

Açıklamalar

Bu yöntem bilinen yöntemler için tekil bir örnek döndürebilir; örneğin, "GET" belirtilirse döndürebilir Get . Ayrıştırma büyük/küçük harfe duyarsız bir şekilde gerçekleştirilir, bu nedenle "get" belirtilirse de döndürebilir Get . Bilinmeyen yöntemler için, oluşturucu tarafından HttpMethod(String) gerçekleştirilen doğrulama ile yeni HttpMethod bir örnek döndürülür.

Şunlara uygulanır