Share via


CookieHeaderValue.TryParse 方法

定义

重载

TryParse(StringSegment, CookieHeaderValue)

尝试将指定的 input 解析为 CookieHeaderValue

TryParse(String, CookieHeaderValue)

TryParse(StringSegment, CookieHeaderValue)

Source:
CookieHeaderValue.cs
Source:
CookieHeaderValue.cs

尝试将指定的 input 解析为 CookieHeaderValue

public:
 static bool TryParse(Microsoft::Extensions::Primitives::StringSegment input, [Runtime::InteropServices::Out] Microsoft::Net::Http::Headers::CookieHeaderValue ^ % parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.CookieHeaderValue parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.CookieHeaderValue? parsedValue);
static member TryParse : Microsoft.Extensions.Primitives.StringSegment * CookieHeaderValue -> bool
Public Shared Function TryParse (input As StringSegment, ByRef parsedValue As CookieHeaderValue) As Boolean

参数

input
StringSegment

要分析的值。

parsedValue
CookieHeaderValue

分析的值。

返回

true 如果输入是有效的 CookieHeaderValue,则为 ;否则为 false

适用于

TryParse(String, CookieHeaderValue)

public:
 static bool TryParse(System::String ^ input, [Runtime::InteropServices::Out] Microsoft::Net::Http::Headers::CookieHeaderValue ^ % parsedValue);
public static bool TryParse (string input, out Microsoft.Net.Http.Headers.CookieHeaderValue parsedValue);
static member TryParse : string * CookieHeaderValue -> bool
Public Shared Function TryParse (input As String, ByRef parsedValue As CookieHeaderValue) As Boolean

参数

input
String
parsedValue
CookieHeaderValue

返回

适用于