ToString()
XmlConvert::ToString(bool) method
Converts the Boolean to a String.
static String System::Xml::XmlConvert::ToString(bool value)
Arguments
Parameter | Type | Description |
---|---|---|
value | bool | The 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
Parameter | Type | Description |
---|---|---|
value | char16_t | The 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
Parameter | Type | Description |
---|---|---|
value | Decimal | The 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
Parameter | Type | Description |
---|---|---|
value | int8_t | The 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
Parameter | Type | Description |
---|---|---|
value | int16_t | The 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
Parameter | Type | Description |
---|---|---|
value | int32_t | The 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
Parameter | Type | Description |
---|---|---|
value | int64_t | The 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
Parameter | Type | Description |
---|---|---|
value | uint8_t | The 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
Parameter | Type | Description |
---|---|---|
value | uint16_t | The 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
Parameter | Type | Description |
---|---|---|
value | uint32_t | The 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
Parameter | Type | Description |
---|---|---|
value | uint64_t | The 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
Parameter | Type | Description |
---|---|---|
value | float | The 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
Parameter | Type | Description |
---|---|---|
value | double | The 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
Parameter | Type | Description |
---|---|---|
value | TimeSpan | The 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
Parameter | Type | Description |
---|---|---|
value | DateTime | The 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
Parameter | Type | Description |
---|---|---|
value | DateTime | The value to convert. |
format | const 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
Parameter | Type | Description |
---|---|---|
value | DateTime | The DateTime value to convert. |
dateTimeOption | XmlDateTimeSerializationMode | One 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
Parameter | Type | Description |
---|---|---|
value | DateTimeOffset | The 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
Parameter | Type | Description |
---|---|---|
value | DateTimeOffset | The DateTimeOffset to be converted. |
format | const 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
Parameter | Type | Description |
---|---|---|
value | Guid | The value to convert. |
Return Value
A string representation of the Guid.
See Also
- Enum XmlDateTimeSerializationMode
- Class String
- Class XmlConvert
- Class Decimal
- Class TimeSpan
- Class DateTime
- Class DateTimeOffset
- Class Guid
- Namespace System::Xml
- Library Aspose.Slides