Jaa


HttpContentDispositionHeaderValue.TryParse Method

Definition

Determines whether a string is valid HttpContentDispositionHeaderValue information.

public:
 static bool TryParse(Platform::String ^ input, [Out] HttpContentDispositionHeaderValue ^ & contentDispositionHeaderValue);
 static bool TryParse(winrt::hstring const& input, [Out] HttpContentDispositionHeaderValue const& & contentDispositionHeaderValue);
public static bool TryParse(string input, out HttpContentDispositionHeaderValue contentDispositionHeaderValue);
Public Shared Function TryParse (input As String, ByRef contentDispositionHeaderValue As HttpContentDispositionHeaderValue) As Boolean

Parameters

input
String

Platform::String

winrt::hstring

The string to validate.

contentDispositionHeaderValue
HttpContentDispositionHeaderValue

The HttpContentDispositionHeaderValue version of the string.

Returns

Boolean

bool

true if input is valid HttpContentDispositionHeaderValue information; otherwise, false.

Examples

See the code example in HttpContentHeaderCollection class.

Applies to