Share via


CookieHeaderValue.TryParse Method

Definition

Overloads

TryParse(StringSegment, CookieHeaderValue)

Attempts to parse the specified input as a CookieHeaderValue.

TryParse(String, CookieHeaderValue)

TryParse(StringSegment, CookieHeaderValue)

Source:
CookieHeaderValue.cs
Source:
CookieHeaderValue.cs
Source:
CookieHeaderValue.cs

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

Parameters

input
StringSegment

The value to parse.

parsedValue
CookieHeaderValue

The parsed value.

Returns

true if input is a valid CookieHeaderValue, otherwise false.

Applies to

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

Parameters

input
String
parsedValue
CookieHeaderValue

Returns

Applies to