Share via


HttpMediaTypeWithQualityHeaderValue.TryParse Method

Definition

Determines whether a string is valid HttpMediaTypeWithQualityHeaderValue information.

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

Parameters

input
String

Platform::String

winrt::hstring

The string to validate.

mediaTypeWithQualityHeaderValue
HttpMediaTypeWithQualityHeaderValue

The HttpMediaTypeWithQualityHeaderValue version of the string.

Returns

Boolean

bool

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

Applies to