CookieRequestCultureProvider.ParseCookieValue(String) 方法

定义

从指定的 Cookie 值分析 RequestCulturenull如果分析失败,则返回 。

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

参数

value
String

要分析的 Cookie 值。

返回

如果分析失败,则 RequestCulture 为 或 null

适用于