System::Net::Http::Headers::TransferCodingHeaderValue::GetTransferCodingLength 方法

TransferCodingHeaderValue::GetTransferCodingLength method

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

static int32_t System::Net::Http::Headers::TransferCodingHeaderValue::GetTransferCodingLength(String input, int32_t startIndex, const HeaderFunc<System::SharedPtr<TransferCodingHeaderValue>> &transferCodingCreator, System::SharedPtr<TransferCodingHeaderValue> &parsedValue)
参数类型描述
输入String要解析的字符串。
startIndexint32_t用于解析的起始位置。
parsedValueconst HeaderFunc<System::SharedPtr<TransferCodingHeaderValue>>&已解析对象将被分配的实例。
transferCodingCreatorSystem::SharedPtr<TransferCodingHeaderValue>&用于创建 TransferCodingHeaderValue 类实例的委托。

ReturnValue

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

另见