System::Net::Http::Headers::NameValueWithParametersHeaderValue::GetNameValueWithParametersLength 方法

NameValueWithParametersHeaderValue::GetNameValueWithParametersLength method

将从指定索引开始的传入字符串转换为 NameValueWithParametersHeaderValue 类的实例。

static int32_t System::Net::Http::Headers::NameValueWithParametersHeaderValue::GetNameValueWithParametersLength(String input, int32_t startIndex, System::SharedPtr<Object> &parsedValue)
参数类型描述
输入String要解析的字符串。
startIndexint32_t用于解析的起始位置。
parsedValueSystem::SharedPtr<Object>&已解析对象将被分配的实例。

ReturnValue

返回已解析子字符串的长度,否则返回 0。

另见