System::Net::Http::Headers::MediaTypeHeaderValue::GetMediaTypeLength method

MediaTypeHeaderValue::GetMediaTypeLength method

Converts a passed string from the specified index to an instance of the MediaTypeHeaderValue class.

static int32_t System::Net::Http::Headers::MediaTypeHeaderValue::GetMediaTypeLength(String input, int32_t startIndex, HeaderFunc<System::SharedPtr<MediaTypeHeaderValue>> mediaTypeCreator, System::SharedPtr<MediaTypeHeaderValue> &parsedValue)
ParameterTypeDescription
inputStringA string to parse.
startIndexint32_tA start position for parsing.
mediaTypeCreatorHeaderFunc<System::SharedPtr<MediaTypeHeaderValue>>The delegate that is used to create instances of the MediaTypeHeaderValue class.
parsedValueSystem::SharedPtr<MediaTypeHeaderValue>&An instance where a parsed object will be assigned.

ReturnValue

Returns the length of a parsed substring, otherwise 0.

See Also