SetCookieHeaderValue.TryParse 方法

定义

重载

TryParse(StringSegment, SetCookieHeaderValue)

尝试将指定的 input 分析为 SetCookieHeaderValue

TryParse(String, SetCookieHeaderValue)

TryParse(StringSegment, SetCookieHeaderValue)

Source:
SetCookieHeaderValue.cs
Source:
SetCookieHeaderValue.cs
Source:
SetCookieHeaderValue.cs

尝试将指定的 input 分析为 SetCookieHeaderValue

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

参数

input
StringSegment

要分析的值。

parsedValue
SetCookieHeaderValue

已分析的值。

返回

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

适用于

TryParse(String, SetCookieHeaderValue)

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

参数

input
String
parsedValue
SetCookieHeaderValue

返回

适用于