GetNameValueLength()

NameValueHeaderValue::GetNameValueLength(String, int32_t, System::SharedPtr<NameValueHeaderValue>&) method

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

static int32_t System::Net::Http::Headers::NameValueHeaderValue::GetNameValueLength(String input, int32_t startIndex, System::SharedPtr<NameValueHeaderValue> &parsedValue)

Arguments

ParameterTypeDescription
inputStringA string to parse.
startIndexint32_tA start position for parsing.
parsedValueSystem::SharedPtr<NameValueHeaderValue>&An instance where a parsed object will be assigned.

Return Value

Returns the length of a parsed substring, otherwise 0.

NameValueHeaderValue::GetNameValueLength(String, int32_t, HeaderFunc<System::SharedPtr<NameValueHeaderValue>>, System::SharedPtr<NameValueHeaderValue>&) method

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

static int32_t System::Net::Http::Headers::NameValueHeaderValue::GetNameValueLength(String input, int32_t startIndex, HeaderFunc<System::SharedPtr<NameValueHeaderValue>> nameValueCreator, System::SharedPtr<NameValueHeaderValue> &parsedValue)

Arguments

ParameterTypeDescription
inputStringA string to parse.
startIndexint32_tA start position for parsing.
nameValueCreatorHeaderFunc<System::SharedPtr<NameValueHeaderValue>>A function that is used to create new instances of the NameValueHeaderValue class.
parsedValueSystem::SharedPtr<NameValueHeaderValue>&An instance where a parsed object will be assigned.

Return Value

Returns the length of a parsed substring, otherwise 0.

See Also