CacheControlHeaderValue.TryParse Method

Definition

Overloads

TryParse(StringSegment, CacheControlHeaderValue)

Attempts to parse the specified input as a CacheControlHeaderValue.

TryParse(String, CacheControlHeaderValue)

TryParse(StringSegment, CacheControlHeaderValue)

Source:
CacheControlHeaderValue.cs
Source:
CacheControlHeaderValue.cs
Source:
CacheControlHeaderValue.cs

Attempts to parse the specified input as a CacheControlHeaderValue.

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

Parameters

input
StringSegment

The value to parse.

parsedValue
CacheControlHeaderValue

The parsed value.

Returns

true if input is a valid CacheControlHeaderValue, otherwise false.

Applies to

TryParse(String, CacheControlHeaderValue)

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

Parameters

input
String

Returns

Applies to