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
Parameter | Type | Description |
---|---|---|
input | String | A string to parse. |
startIndex | int32_t | A start position for parsing. |
mediaTypeCreator | HeaderFunc<System::SharedPtr<MediaTypeHeaderValue>> | The delegate that is used to create instances of the MediaTypeHeaderValue class. |
parsedValue | System::SharedPtr<MediaTypeHeaderValue>& | An instance where a parsed object will be assigned. |
Return Value
Returns the length of a parsed substring, otherwise 0.
See Also
- Typedef HeaderFunc
- Typedef SharedPtr
- Class String
- Class MediaTypeHeaderValue
- Namespace System::Net::Http::Headers
- Library Aspose.Slides