TryParse()

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

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

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

Arguments

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

Return Value

True when the parsing is successfully done, otherwise false.

See Also