System::Net::Http::Headers::ProductHeaderValue::GetProductLength 方法

ProductHeaderValue::GetProductLength method

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

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

ReturnValue

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

另见