ContentDispositionHeaderValue.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, ContentDispositionHeaderValue) |
Attempts to parse the specified |
TryParse(String, ContentDispositionHeaderValue) |
TryParse(StringSegment, ContentDispositionHeaderValue)
Attempts to parse the specified input
as a ContentDispositionHeaderValue.
public:
static bool TryParse(Microsoft::Extensions::Primitives::StringSegment input, [Runtime::InteropServices::Out] Microsoft::Net::Http::Headers::ContentDispositionHeaderValue ^ % parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.ContentDispositionHeaderValue parsedValue);
public static bool TryParse (Microsoft.Extensions.Primitives.StringSegment input, out Microsoft.Net.Http.Headers.ContentDispositionHeaderValue? parsedValue);
static member TryParse : Microsoft.Extensions.Primitives.StringSegment * ContentDispositionHeaderValue -> bool
Public Shared Function TryParse (input As StringSegment, ByRef parsedValue As ContentDispositionHeaderValue) As Boolean
Parameters
- input
- StringSegment
The value to parse.
- parsedValue
- ContentDispositionHeaderValue
The parsed value.
Returns
true
if input is a valid ContentDispositionHeaderValue, otherwise false
.
Applies to
TryParse(String, ContentDispositionHeaderValue)
public:
static bool TryParse(System::String ^ input, [Runtime::InteropServices::Out] Microsoft::Net::Http::Headers::ContentDispositionHeaderValue ^ % parsedValue);
public static bool TryParse (string input, out Microsoft.Net.Http.Headers.ContentDispositionHeaderValue parsedValue);
static member TryParse : string * ContentDispositionHeaderValue -> bool
Public Shared Function TryParse (input As String, ByRef parsedValue As ContentDispositionHeaderValue) As Boolean
Parameters
- input
- String
- parsedValue
- ContentDispositionHeaderValue