Windows Runtime types de données de base
Ce tableau répertorie les types de données de base pris en charge par le Windows Runtime et indique le type correspondant en C#, Visual Basic et C++.
Type de données | JavaScript | C# | VB | C++ |
---|---|---|---|---|
Booléen | Booléen | bool | Booléen | bool |
Byte | Nombre | byte | Byte | unsigned char |
Char | Chaîne | char | Char | unsigned char |
Char16 | Chaîne | char | Char | wchar_t |
DateTime | Date | DateTimeOffset | DateTimeOffset | DateTime |
Double | Nombre | double | Double | double |
Guid | Chaîne | Guid | Guid | Guid |
Int16 | Nombre | short | short | short |
Int32 | Nombre | int | Integer | int |
Int64 | Nombre | long | Long | __int64 |
Object | Object | object | Object | Objet^ |
Point | Point | Point | Point | Point |
Rect | Rect | Rect | Rect | Rect |
Unique | Nombre | float | Unique | float |
Taille | Taille | Taille | Taille | Taille |
Chaîne | Chaîne | string | Chaîne | String^ |
TimeSpan | Nombre | TimeSpan | TimeSpan | TimeSpan |
UInt8 | Nombre | byte | Byte | unsigned char |
UInt16 | Nombre | ushort | UShort | unsigned short |
UInt32 | Nombre | uint | UInteger | nombre entier non signé |
UInt64 | Nombre | ulong | ULong | unsigned __int64 |
Uri | Uri | Uri | Uri | Uri^ |
Void | Undefined | void | Void | void |
Le tableau suivant indique les types .NET qui correspondent aux types de données Windows Runtime.
Windows Runtime | .NET |
---|---|
Booléen | System.Boolean |
Byte | System.Byte |
Char | System.Char |
Char16 | System.Char |
DateTime | System.DateTimeOffset |
Double | System.Double |
Guid | System.Guid |
Int16 | System.Int16 |
Int32 | System.Int32 |
Int64 | System.Int64 |
Object | System.Object |
Unique | System.Single |
Chaîne | System.String |
TimeSpan | System.TimeSpan |
UInt8 | System.Byte |
UInt16 | System.UInt16 |
UInt32 | System.UInt32 |
UInt64 | System.UInt64 |
Uri | System.Uri |
Void | System.Void |
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour