## XmlConvert::ToString(bool) method


Converts the [Boolean](../../../system/boolean/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | bool | The value to convert. |

### ReturnValue

A string representation of the [Boolean](../../../system/boolean/), that is, "true" or "false".

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(char16_t) method


Converts the [Char](../../../system/char/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | char16_t | The value to convert. |

### ReturnValue

A string representation of the [Char](../../../system/char/).

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(Decimal) method


Converts the [Decimal](../../../system/decimal/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | Decimal | The value to convert. |

### ReturnValue

A string representation of the [Decimal](../../../system/decimal/).

## See Also

* Class [String](../../../system/string/)
* Class [Decimal](../../../system/decimal/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(int8_t) method


Converts the [SByte](../../../system/sbyte/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | int8_t | The value to convert. |

### ReturnValue

A string representation of the [SByte](../../../system/sbyte/).

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(int16_t) method


Converts the [Int16](../../../system/int16/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | int16_t | The value to convert. |

### ReturnValue

A string representation of the [Int16](../../../system/int16/).

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(int32_t) method


Converts the [Int32](../../../system/int32/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | int32_t | The value to convert. |

### ReturnValue

A string representation of the [Int32](../../../system/int32/).

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(int64_t) method


Converts the [Int64](../../../system/int64/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | int64_t | The value to convert. |

### ReturnValue

A string representation of the [Int64](../../../system/int64/).

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(uint8_t) method


Converts the [Byte](../../../system/byte/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | uint8_t | The value to convert. |

### ReturnValue

A string representation of the [Byte](../../../system/byte/).

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(uint16_t) method


Converts the [UInt16](../../../system/uint16/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | uint16_t | The value to convert. |

### ReturnValue

A string representation of the [UInt16](../../../system/uint16/).

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(uint32_t) method


Converts the [UInt32](../../../system/uint32/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | uint32_t | The value to convert. |

### ReturnValue

A string representation of the [UInt32](../../../system/uint32/).

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(uint64_t) method


Converts the [UInt64](../../../system/uint64/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | uint64_t | The value to convert. |

### ReturnValue

A string representation of the [UInt64](../../../system/uint64/).

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(float) method


Converts the [Single](../../../system/single/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | float | The value to convert. |

### ReturnValue

A string representation of the [Single](../../../system/single/).

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(double) method


Converts the [Double](../../../system/double/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | double | The value to convert. |

### ReturnValue

A string representation of the [Double](../../../system/double/).

## See Also

* Class [String](../../../system/string/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(TimeSpan) method


Converts the [TimeSpan](../../../system/timespan/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | TimeSpan | The value to convert. |

### ReturnValue

A string representation of the [TimeSpan](../../../system/timespan/).

## See Also

* Class [String](../../../system/string/)
* Class [TimeSpan](../../../system/timespan/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(DateTime) method


Converts the [DateTime](../../../system/datetime/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | DateTime | The value to convert. |

### ReturnValue

A string representation of the [DateTime](../../../system/datetime/) in the format yyyy-MM-ddTHH:mm:ss where 'T' is a constant literal.

## See Also

* Class [String](../../../system/string/)
* Class [DateTime](../../../system/datetime/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(DateTime, const String\&) method


Converts the [DateTime](../../../system/datetime/) to a [String](../../../system/string/).

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


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

### ReturnValue

A string representation of the [DateTime](../../../system/datetime/) in the specified format.

## See Also

* Class [String](../../../system/string/)
* Class [DateTime](../../../system/datetime/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(DateTime, XmlDateTimeSerializationMode) method


Converts the [DateTime](../../../system/datetime/) to a [String](../../../system/string/) using the XmlDateTimeSerializationMode specified.

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | DateTime | The [DateTime](../../../system/datetime/) value to convert. |
| dateTimeOption | XmlDateTimeSerializationMode | One of the XmlDateTimeSerializationMode values that specify how to treat the [DateTime](../../../system/datetime/) value. |

### ReturnValue

A [String](../../../system/string/) equivalent of the [DateTime](../../../system/datetime/).

## See Also

* Class [String](../../../system/string/)
* Class [DateTime](../../../system/datetime/)
* Enum [XmlDateTimeSerializationMode](../../xmldatetimeserializationmode/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(DateTimeOffset) method


Converts the supplied [DateTimeOffset](../../../system/datetimeoffset/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | DateTimeOffset | The [DateTimeOffset](../../../system/datetimeoffset/) to be converted. |

### ReturnValue

A [String](../../../system/string/) representation of the supplied [DateTimeOffset](../../../system/datetimeoffset/).

## See Also

* Class [String](../../../system/string/)
* Class [DateTimeOffset](../../../system/datetimeoffset/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(DateTimeOffset, const String\&) method


Converts the supplied [DateTimeOffset](../../../system/datetimeoffset/) to a [String](../../../system/string/) in the specified format.

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | DateTimeOffset | The [DateTimeOffset](../../../system/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](https://www.w3.org/TR/xmlschema-2/#dateTime) section of the XML [Schema](../../../system.xml.schema/) specification. |

### ReturnValue

A [String](../../../system/string/) representation in the specified format of the supplied [DateTimeOffset](../../../system/datetimeoffset/).

## See Also

* Class [String](../../../system/string/)
* Class [DateTimeOffset](../../../system/datetimeoffset/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlConvert::ToString(Guid) method


Converts the [Guid](../../../system/guid/) to a [String](../../../system/string/).

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


| Parameter | Type | Description |
| --- | --- | --- |
| value | Guid | The value to convert. |

### ReturnValue

A string representation of the [Guid](../../../system/guid/).

## See Also

* Class [String](../../../system/string/)
* Class [Guid](../../../system/guid/)
* Class [XmlConvert](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
