ToString()

XmlConvert::ToString(bool) method

Converts the Boolean to a String.

static String System::Xml::XmlConvert::ToString(bool value)

Arguments

ParameterTypeDescription
valueboolThe value to convert.

Return Value

A string representation of the Boolean, that is, "true" or "false".

XmlConvert::ToString(char16_t) method

Converts the Char to a String.

static String System::Xml::XmlConvert::ToString(char16_t value)

Arguments

ParameterTypeDescription
valuechar16_tThe value to convert.

Return Value

A string representation of the Char.

XmlConvert::ToString(Decimal) method

Converts the Decimal to a String.

static String System::Xml::XmlConvert::ToString(Decimal value)

Arguments

ParameterTypeDescription
valueDecimalThe value to convert.

Return Value

A string representation of the Decimal.

XmlConvert::ToString(int8_t) method

Converts the SByte to a String.

static String System::Xml::XmlConvert::ToString(int8_t value)

Arguments

ParameterTypeDescription
valueint8_tThe value to convert.

Return Value

A string representation of the SByte.

XmlConvert::ToString(int16_t) method

Converts the Int16 to a String.

static String System::Xml::XmlConvert::ToString(int16_t value)

Arguments

ParameterTypeDescription
valueint16_tThe value to convert.

Return Value

A string representation of the Int16.

XmlConvert::ToString(int32_t) method

Converts the Int32 to a String.

static String System::Xml::XmlConvert::ToString(int32_t value)

Arguments

ParameterTypeDescription
valueint32_tThe value to convert.

Return Value

A string representation of the Int32.

XmlConvert::ToString(int64_t) method

Converts the Int64 to a String.

static String System::Xml::XmlConvert::ToString(int64_t value)

Arguments

ParameterTypeDescription
valueint64_tThe value to convert.

Return Value

A string representation of the Int64.

XmlConvert::ToString(uint8_t) method

Converts the Byte to a String.

static String System::Xml::XmlConvert::ToString(uint8_t value)

Arguments

ParameterTypeDescription
valueuint8_tThe value to convert.

Return Value

A string representation of the Byte.

XmlConvert::ToString(uint16_t) method

Converts the UInt16 to a String.

static String System::Xml::XmlConvert::ToString(uint16_t value)

Arguments

ParameterTypeDescription
valueuint16_tThe value to convert.

Return Value

A string representation of the UInt16.

XmlConvert::ToString(uint32_t) method

Converts the UInt32 to a String.

static String System::Xml::XmlConvert::ToString(uint32_t value)

Arguments

ParameterTypeDescription
valueuint32_tThe value to convert.

Return Value

A string representation of the UInt32.

XmlConvert::ToString(uint64_t) method

Converts the UInt64 to a String.

static String System::Xml::XmlConvert::ToString(uint64_t value)

Arguments

ParameterTypeDescription
valueuint64_tThe value to convert.

Return Value

A string representation of the UInt64.

XmlConvert::ToString(float) method

Converts the Single to a String.

static String System::Xml::XmlConvert::ToString(float value)

Arguments

ParameterTypeDescription
valuefloatThe value to convert.

Return Value

A string representation of the Single.

XmlConvert::ToString(double) method

Converts the Double to a String.

static String System::Xml::XmlConvert::ToString(double value)

Arguments

ParameterTypeDescription
valuedoubleThe value to convert.

Return Value

A string representation of the Double.

XmlConvert::ToString(TimeSpan) method

Converts the TimeSpan to a String.

static String System::Xml::XmlConvert::ToString(TimeSpan value)

Arguments

ParameterTypeDescription
valueTimeSpanThe value to convert.

Return Value

A string representation of the TimeSpan.

XmlConvert::ToString(DateTime) method

Converts the DateTime to a String.

static String System::Xml::XmlConvert::ToString(DateTime value)

Arguments

ParameterTypeDescription
valueDateTimeThe value to convert.

Return Value

A string representation of the DateTime in the format yyyy-MM-ddTHH:mm:ss where ‘T’ is a constant literal.

XmlConvert::ToString(DateTime, const String&) method

Converts the DateTime to a String.

static String System::Xml::XmlConvert::ToString(DateTime value, const String &format)

Arguments

ParameterTypeDescription
valueDateTimeThe value to convert.
formatconst String&The format structure that defines how to display the converted string. Valid formats include "yyyy-MM-ddTHH:mm:sszzzzzz" and its subsets.

Return Value

A string representation of the DateTime in the specified format.

XmlConvert::ToString(DateTime, XmlDateTimeSerializationMode) method

Converts the DateTime to a String using the XmlDateTimeSerializationMode specified.

static String System::Xml::XmlConvert::ToString(DateTime value, XmlDateTimeSerializationMode dateTimeOption)

Arguments

ParameterTypeDescription
valueDateTimeThe DateTime value to convert.
dateTimeOptionXmlDateTimeSerializationModeOne of the XmlDateTimeSerializationMode values that specify how to treat the DateTime value.

Return Value

A String equivalent of the DateTime.

XmlConvert::ToString(DateTimeOffset) method

Converts the supplied DateTimeOffset to a String.

static String System::Xml::XmlConvert::ToString(DateTimeOffset value)

Arguments

ParameterTypeDescription
valueDateTimeOffsetThe DateTimeOffset to be converted.

Return Value

A String representation of the supplied DateTimeOffset.

XmlConvert::ToString(DateTimeOffset, const String&) method

Converts the supplied DateTimeOffset to a String in the specified format.

static String System::Xml::XmlConvert::ToString(DateTimeOffset value, const String &format)

Arguments

ParameterTypeDescription
valueDateTimeOffsetThe DateTimeOffset to be converted.
formatconst String&The format to which s is converted. The format parameter can be any subset of the W3C Recommendation for the XML dateTime type. For more information, see the dateTime section of the XML Schema specification.

Return Value

A String representation in the specified format of the supplied DateTimeOffset.

XmlConvert::ToString(Guid) method

Converts the Guid to a String.

static String System::Xml::XmlConvert::ToString(Guid value)

Arguments

ParameterTypeDescription
valueGuidThe value to convert.

Return Value

A string representation of the Guid.

See Also