Share via


HttpMediaTypeHeaderValue.TryParse(String, HttpMediaTypeHeaderValue) Method

Definition

Determines whether a string is valid HttpMediaTypeHeaderValue information.

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

Parameters

input
String

Platform::String

winrt::hstring

The string to validate.

mediaTypeHeaderValue
HttpMediaTypeHeaderValue

The HttpMediaTypeHeaderValue version of the string.

Returns

Boolean

bool

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

Applies to