Dela via


CookieRequestCultureProvider.ParseCookieValue(String) Method

Definition

Parses a RequestCulture from the specified cookie value. Returns null if parsing fails.

public:
 static Microsoft::AspNetCore::Localization::ProviderCultureResult ^ ParseCookieValue(System::String ^ value);
public static Microsoft.AspNetCore.Localization.ProviderCultureResult ParseCookieValue (string value);
public static Microsoft.AspNetCore.Localization.ProviderCultureResult? ParseCookieValue (string value);
static member ParseCookieValue : string -> Microsoft.AspNetCore.Localization.ProviderCultureResult
Public Shared Function ParseCookieValue (value As String) As ProviderCultureResult

Parameters

value
String

The cookie value to parse.

Returns

The RequestCulture or null if parsing fails.

Applies to