GetMediaTypeLength()

MediaTypeHeaderValue::GetMediaTypeLength(String, int32_t, HeaderFunc<System::SharedPtr<MediaTypeHeaderValue>>, System::SharedPtr<MediaTypeHeaderValue>&) 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)

Arguments

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.

Return Value

Returns the length of a parsed substring, otherwise 0.

See Also