HttpMethod.Parse(ReadOnlySpan<Char>) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parses the provided method
into an HttpMethod 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>
The method to parse.
An HttpMethod instance for the provided method
.
This method may return a singleton instance for known methods; for example, it may return Get if "GET" is specified. The parsing is performed in a case-insensitive manner, so it may also return Get if "get" is specified. For unknown methods, a new HttpMethod instance is returned, with the same validation being performed as by the HttpMethod(String) constructor.
Produkt | Verzie |
---|---|
.NET | 8, 9, 10 |
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: