TryParse()

MediaTypeWithQualityHeaderValue::TryParse(String, System::SharedPtr<MediaTypeWithQualityHeaderValue>&) method

Tries to convert a passed string to an instance of the MediaTypeWithQualityHeaderValue class.

static bool System::Net::Http::Headers::MediaTypeWithQualityHeaderValue::TryParse(String input, System::SharedPtr<MediaTypeWithQualityHeaderValue> &parsedValue)

Arguments

ParameterTypeDescription
inputStringA string to parse.
parsedValueSystem::SharedPtr<MediaTypeWithQualityHeaderValue>&An instance where a parsed object will be assigned.

Return Value

True when the parsing is successfully done, otherwise false.

See Also