CacheControlHeaderValue.TryParse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TryParse(StringSegment, CacheControlHeaderValue) |
Attempts to parse the specified |
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
- parsedValue
- CacheControlHeaderValue