System::Xml::XmlConvert::ToString method

XmlConvert::ToString(bool) method

Converts the Boolean to a String.

static String System::Xml::XmlConvert::ToString(bool value)
ParameterTypeDescription
valueboolThe value to convert.

ReturnValue

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

See Also

XmlConvert::ToString(char16_t) method

Converts the Char to a String.

static String System::Xml::XmlConvert::ToString(char16_t value)
ParameterTypeDescription
valuechar16_tThe value to convert.

ReturnValue

A string representation of the Char.

See Also

XmlConvert::ToString(Decimal) method

Converts the Decimal to a String.

static String System::Xml::XmlConvert::ToString(Decimal value)
ParameterTypeDescription
valueDecimalThe value to convert.

ReturnValue

A string representation of the Decimal.

See Also

XmlConvert::ToString(int8_t) method

Converts the SByte to a String.

static String System::Xml::XmlConvert::ToString(int8_t value)
ParameterTypeDescription
valueint8_tThe value to convert.

ReturnValue

A string representation of the SByte.

See Also

XmlConvert::ToString(int16_t) method

Converts the Int16 to a String.

static String System::Xml::XmlConvert::ToString(int16_t value)
ParameterTypeDescription
valueint16_tThe value to convert.

ReturnValue

A string representation of the Int16.

See Also

XmlConvert::ToString(int32_t) method

Converts the Int32 to a String.

static String System::Xml::XmlConvert::ToString(int32_t value)
ParameterTypeDescription
valueint32_tThe value to convert.

ReturnValue

A string representation of the Int32.

See Also

XmlConvert::ToString(int64_t) method

Converts the Int64 to a String.

static String System::Xml::XmlConvert::ToString(int64_t value)
ParameterTypeDescription
valueint64_tThe value to convert.

ReturnValue

A string representation of the Int64.

See Also

XmlConvert::ToString(uint8_t) method

Converts the Byte to a String.

static String System::Xml::XmlConvert::ToString(uint8_t value)
ParameterTypeDescription
valueuint8_tThe value to convert.

ReturnValue

A string representation of the Byte.

See Also

XmlConvert::ToString(uint16_t) method

Converts the UInt16 to a String.

static String System::Xml::XmlConvert::ToString(uint16_t value)
ParameterTypeDescription
valueuint16_tThe value to convert.

ReturnValue

A string representation of the UInt16.

See Also

XmlConvert::ToString(uint32_t) method

Converts the UInt32 to a String.

static String System::Xml::XmlConvert::ToString(uint32_t value)
ParameterTypeDescription
valueuint32_tThe value to convert.

ReturnValue

A string representation of the UInt32.

See Also

XmlConvert::ToString(uint64_t) method

Converts the UInt64 to a String.

static String System::Xml::XmlConvert::ToString(uint64_t value)
ParameterTypeDescription
valueuint64_tThe value to convert.

ReturnValue

A string representation of the UInt64.

See Also

XmlConvert::ToString(float) method

Converts the Single to a String.

static String System::Xml::XmlConvert::ToString(float value)
ParameterTypeDescription
valuefloatThe value to convert.

ReturnValue

A string representation of the Single.

See Also

XmlConvert::ToString(double) method

Converts the Double to a String.

static String System::Xml::XmlConvert::ToString(double value)
ParameterTypeDescription
valuedoubleThe value to convert.

ReturnValue

A string representation of the Double.

See Also

XmlConvert::ToString(TimeSpan) method

Converts the TimeSpan to a String.

static String System::Xml::XmlConvert::ToString(TimeSpan value)
ParameterTypeDescription
valueTimeSpanThe value to convert.

ReturnValue

A string representation of the TimeSpan.

See Also

XmlConvert::ToString(DateTime) method

Converts the DateTime to a String.

static String System::Xml::XmlConvert::ToString(DateTime value)
ParameterTypeDescription
valueDateTimeThe value to convert.

ReturnValue

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

See Also

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

Converts the DateTime to a String.

static String System::Xml::XmlConvert::ToString(DateTime value, const String &format)
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.

ReturnValue

A string representation of the DateTime in the specified format.

See Also

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)
ParameterTypeDescription
valueDateTimeThe DateTime value to convert.
dateTimeOptionXmlDateTimeSerializationModeOne of the XmlDateTimeSerializationMode values that specify how to treat the DateTime value.

ReturnValue

A String equivalent of the DateTime.

See Also

XmlConvert::ToString(DateTimeOffset) method

Converts the supplied DateTimeOffset to a String.

static String System::Xml::XmlConvert::ToString(DateTimeOffset value)
ParameterTypeDescription
valueDateTimeOffsetThe DateTimeOffset to be converted.

ReturnValue

A String representation of the supplied DateTimeOffset.

See Also

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)
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.

ReturnValue

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

See Also

XmlConvert::ToString(Guid) method

Converts the Guid to a String.

static String System::Xml::XmlConvert::ToString(Guid value)
ParameterTypeDescription
valueGuidThe value to convert.

ReturnValue

A string representation of the Guid.

See Also