System::Xml::XmlConvert::ToString méthode

XmlConvert::ToString(bool) method

Convertit le Boolean en une String.

static String System::Xml::XmlConvert::ToString(bool value)
ParamètreTypeDescription
valueboolLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du Boolean, c’est‑à‑dire “true” ou “false”.

Voir aussi

XmlConvert::ToString(char16_t) method

Convertit le Char en une String.

static String System::Xml::XmlConvert::ToString(char16_t value)
ParamètreTypeDescription
valuechar16_tLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du Char.

Voir aussi

XmlConvert::ToString(DateTime) method

Convertit le DateTime en une String.

static String System::Xml::XmlConvert::ToString(DateTime value)
ParamètreTypeDescription
valueDateTimeLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du DateTime au format yyyy-MM-ddTHH:mm:ss où ‘T’ est un littéral constant.

Voir aussi

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

Convertit le DateTime en une String.

static String System::Xml::XmlConvert::ToString(DateTime value, const String &format)
ParamètreTypeDescription
valueDateTimeLa valeur à convertir.
formatconst String&La structure de format qui définit comment afficher la chaîne convertie. Les formats valides incluent “yyyy-MM-ddTHH:mm:sszzzzzz” et ses sous‑ensembles.

ReturnValue

Une représentation sous forme de chaîne du DateTime dans le format spécifié.

Voir aussi

XmlConvert::ToString(DateTime, XmlDateTimeSerializationMode) method

Convertit le DateTime en une String en utilisant le XmlDateTimeSerializationMode spécifié.

static String System::Xml::XmlConvert::ToString(DateTime value, XmlDateTimeSerializationMode dateTimeOption)
ParamètreTypeDescription
valueDateTimeLa valeur DateTime à convertir.
dateTimeOptionXmlDateTimeSerializationModeL’une des valeurs du XmlDateTimeSerializationMode qui spécifient comment traiter la valeur DateTime.

ReturnValue

Une String équivalente du DateTime.

Voir aussi

XmlConvert::ToString(DateTimeOffset) method

Convertit le DateTimeOffset fourni en une String.

static String System::Xml::XmlConvert::ToString(DateTimeOffset value)
ParamètreTypeDescription
valueDateTimeOffsetLe DateTimeOffset à convertir.

ReturnValue

Une représentation sous forme de String du DateTimeOffset fourni.

Voir aussi

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

Convertit le DateTimeOffset fourni en une String dans le format spécifié.

static String System::Xml::XmlConvert::ToString(DateTimeOffset value, const String &format)
ParamètreTypeDescription
valueDateTimeOffsetLe DateTimeOffset à convertir.
formatconst String&Le format vers lequel s est converti. Le paramètre de format peut être n’importe quel sous‑ensemble de la recommandation W3C pour le type XML dateTime. Pour plus d’informations, consultez la section dateTime du Schema XML.

ReturnValue

Une représentation sous forme de String dans le format spécifié du DateTimeOffset fourni.

Voir aussi

XmlConvert::ToString(Decimal) method

Convertit le Decimal en une String.

static String System::Xml::XmlConvert::ToString(Decimal value)
ParamètreTypeDescription
valueDecimalLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du Decimal.

Voir aussi

XmlConvert::ToString(double) method

Convertit le Double en une String.

static String System::Xml::XmlConvert::ToString(double value)
ParamètreTypeDescription
valuedoubleLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du Double.

Voir aussi

XmlConvert::ToString(float) method

Convertit le Single en une String.

static String System::Xml::XmlConvert::ToString(float value)
ParamètreTypeDescription
valuefloatLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du Single.

Voir aussi

XmlConvert::ToString(Guid) method

Convertit le Guid en une String.

static String System::Xml::XmlConvert::ToString(Guid value)
ParamètreTypeDescription
valueGuidLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du Guid.

Voir aussi

XmlConvert::ToString(int16_t) method

Convertit le Int16 en une String.

static String System::Xml::XmlConvert::ToString(int16_t value)
ParamètreTypeDescription
valueint16_tLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du Int16.

Voir aussi

XmlConvert::ToString(int32_t) method

Convertit le Int32 en une String.

static String System::Xml::XmlConvert::ToString(int32_t value)
ParamètreTypeDescription
valueint32_tLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du Int32.

Voir aussi

XmlConvert::ToString(int64_t) method

Convertit le Int64 en une String.

static String System::Xml::XmlConvert::ToString(int64_t value)
ParamètreTypeDescription
valueint64_tLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du Int64.

Voir aussi

XmlConvert::ToString(int8_t) method

Convertit le SByte en une String.

static String System::Xml::XmlConvert::ToString(int8_t value)
ParamètreTypeDescription
valueint8_tLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du SByte.

Voir aussi

XmlConvert::ToString(TimeSpan) method

Convertit le TimeSpan en une String.

static String System::Xml::XmlConvert::ToString(TimeSpan value)
ParamètreTypeDescription
valueTimeSpanLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du TimeSpan.

Voir aussi

XmlConvert::ToString(uint16_t) method

Convertit le UInt16 en une String.

static String System::Xml::XmlConvert::ToString(uint16_t value)
ParamètreTypeDescription
valueuint16_tLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du UInt16.

Voir aussi

XmlConvert::ToString(uint32_t) method

Convertit le UInt32 en une String.

static String System::Xml::XmlConvert::ToString(uint32_t value)
ParamètreTypeDescription
valueuint32_tLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du UInt32.

Voir aussi

XmlConvert::ToString(uint64_t) method

Convertit le UInt64 en une String.

static String System::Xml::XmlConvert::ToString(uint64_t value)
ParamètreTypeDescription
valueuint64_tLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du UInt64.

Voir aussi

XmlConvert::ToString(uint8_t) method

Convertit le Byte en une String.

static String System::Xml::XmlConvert::ToString(uint8_t value)
ParamètreTypeDescription
valueuint8_tLa valeur à convertir.

ReturnValue

Une représentation sous forme de chaîne du Byte.

Voir aussi