Méthode System::Xml::XmlConvert::ToString

XmlConvert::ToString(bool) method

Convertit le Boolean en String.

static String System::Xml::XmlConvert::ToString(bool value)
ParamètreTypeDescription
valeurboolLa 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 String.

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

ReturnValue

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

Voir aussi

XmlConvert::ToString(DateTime) method

Convertit le DateTime en String.

static String System::Xml::XmlConvert::ToString(DateTime value)
ParamètreTypeDescription
valeurDateTimeLa 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 String.

static String System::Xml::XmlConvert::ToString(DateTime value, const String &format)
ParamètreTypeDescription
valeurDateTimeLa 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 String en utilisant le XmlDateTimeSerializationMode spécifié.

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

ReturnValue

Un équivalent String du DateTime.

Voir aussi

XmlConvert::ToString(DateTimeOffset) method

Convertit le DateTimeOffset fourni en String.

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

ReturnValue

Une représentation String du DateTimeOffset fourni.

Voir aussi

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

Convertit le DateTimeOffset fourni en 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 format peut être n’importe quel sous‑ensemble de la recommandation W3C pour le type XML dateTime. Pour plus d’informations, voir la section dateTime du XML Schema spécification.

ReturnValue

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

Voir aussi

XmlConvert::ToString(Decimal) method

Convertit le Decimal en String.

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

ReturnValue

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

Voir aussi

XmlConvert::ToString(double) method

Convertit le Double en String.

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

ReturnValue

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

Voir aussi

XmlConvert::ToString(float) method

Convertit le Single en String.

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

ReturnValue

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

Voir aussi

XmlConvert::ToString(Guid) method

Convertit le Guid en String.

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

ReturnValue

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

Voir aussi

XmlConvert::ToString(int16_t) method

Convertit le Int16 en String.

static String System::Xml::XmlConvert::ToString(int16_t value)
ParamètreTypeDescription
valeurint16_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 String.

static String System::Xml::XmlConvert::ToString(int32_t value)
ParamètreTypeDescription
valeurint32_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 String.

static String System::Xml::XmlConvert::ToString(int64_t value)
ParamètreTypeDescription
valeurint64_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 String.

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

ReturnValue

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

Voir aussi

XmlConvert::ToString(TimeSpan) method

Convertit le TimeSpan en String.

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

ReturnValue

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

Voir aussi

XmlConvert::ToString(uint16_t) method

Convertit le UInt16 en String.

static String System::Xml::XmlConvert::ToString(uint16_t value)
ParamètreTypeDescription
valeuruint16_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 String.

static String System::Xml::XmlConvert::ToString(uint32_t value)
ParamètreTypeDescription
valeuruint32_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
valeuruint64_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
valeuruint8_tLa valeur à convertir.

ReturnValue

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

Voir aussi