Share via


SetCookieHeaderValue.TryParse Method

Definition

Overloads

TryParse(StringSegment, SetCookieHeaderValue)

Attempts to parse the specified input as a SetCookieHeaderValue.

TryParse(String, SetCookieHeaderValue)

TryParse(StringSegment, SetCookieHeaderValue)

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

Attempts to parse the specified input as a 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

Parameters

input
StringSegment

The value to parse.

parsedValue
SetCookieHeaderValue

The parsed value.

Returns

true if input is a valid SetCookieHeaderValue, otherwise false.

Applies to

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

Parameters

input
String
parsedValue
SetCookieHeaderValue

Returns

Applies to