System::Net::Http::Headers::NameValueHeaderValue::ToString 方法

NameValueHeaderValue::ToString() const method

类似 C# Object.ToString() 方法。 实现将自定义对象转换为字符串的功能。

String System::Net::Http::Headers::NameValueHeaderValue::ToString() const override

ReturnValue

String representation as provided by final class.

另见

NameValueHeaderValue::ToString(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>, char16_t, bool) method

返回 NameValueHeaderValue 类实例集合的字符串表示形式。

static String System::Net::Http::Headers::NameValueHeaderValue::ToString(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>> values, char16_t separator, bool leadingSeparator)
参数类型描述
System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>NameValueHeaderValue 类实例的集合。
分隔符char16_t字符串分隔符。
leadingSeparatorbool指示是否在第一个集合项之前添加字符串分隔符的值。

ReturnValue

NameValueHeaderValue 类实例集合的字符串表示形式。

另见

NameValueHeaderValue::ToString(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>, char16_t, bool, System::SharedPtr<Text::StringBuilder>) method

返回 NameValueHeaderValue 类实例集合的字符串表示形式。

static void System::Net::Http::Headers::NameValueHeaderValue::ToString(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>> values, char16_t separator, bool leadingSeparator, System::SharedPtr<Text::StringBuilder> destination)
参数类型描述
System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>NameValueHeaderValue 类实例的集合。
分隔符char16_t字符串分隔符。
leadingSeparatorbool指示是否在第一个集合项之前添加字符串分隔符的值。
destinationSystem::SharedPtr<Text::StringBuilder>将分配字符串表示形式的实例。

另见