ToString()

NameValueHeaderValue::ToString() const method

Analog of C# Object.ToString() method. Enables converting custom objects to string.

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

Return Value

String representation as provided by final class.

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

Returns a string representation of the collection of the NameValueHeaderValue-class instances.

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)

Arguments

ParameterTypeDescription
valuesSystem::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>The collection of the NameValueHeaderValue-class instances.
separatorchar16_tA string separator.
leadingSeparatorboolThe value that indicates if the string separator must be added before the first collection item.
destinationSystem::SharedPtr<Text::StringBuilder>An instance where a string representation will be assigned.

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

Returns a string representation of the collection of the NameValueHeaderValue-class instances.

static String System::Net::Http::Headers::NameValueHeaderValue::ToString(System::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>> values, char16_t separator, bool leadingSeparator)

Arguments

ParameterTypeDescription
valuesSystem::SharedPtr<ObjectCollection<System::SharedPtr<NameValueHeaderValue>>>The collection of the NameValueHeaderValue-class instances.
separatorchar16_tA string separator.
leadingSeparatorboolThe value that indicates if the string separator must be added before the first collection item.

Return Value

A string representation of the collection of the NameValueHeaderValue-class instances.

See Also