Delen via


ContentDispositionHeaderValue.TryParse Method

Definition

Overloads

TryParse(StringSegment, ContentDispositionHeaderValue)

Attempts to parse the specified input as a ContentDispositionHeaderValue.

TryParse(String, ContentDispositionHeaderValue)

TryParse(StringSegment, ContentDispositionHeaderValue)

Source:
ContentDispositionHeaderValue.cs
Source:
ContentDispositionHeaderValue.cs
Source:
ContentDispositionHeaderValue.cs

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

Returns

Applies to