Types de données de base Windows Runtime
Ce tableau répertorie les types de données de base pris en charge par 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 |
d’octets | nombre | d’octets | d’octets | caractères non signés |
Char | chaîne | char | Char | caractères non signés |
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 | courte | Short | courte |
Int32 | nombre | int | entier | int |
Int64 | nombre | long | long | __int64 |
objet | objet | d’objet | objet | Object^ |
point | point | point | point | point |
Rect | Rect | Rect | Rect | Rect |
unique | nombre | float | unique | float |
taille | taille | taille | taille | taille |
chaîne | chaîne | chaîne | chaîne | String^ |
timeSpan | nombre | timeSpan | timeSpan | timeSpan |
UInt8 | nombre | d’octets | d’octets | caractères non signés |
UInt16 | nombre | ushort | UShort | courte non signée |
UInt32 | nombre | uint | UInteger | int non signé |
UInt64 | nombre | ulong | ULong | __int64 non signé |
uri | uri | uri | uri | Uri^ |
Void | non défini | void | Void | void |
Le tableau suivant indique les types .NET qui correspondent aux types de données Windows Runtime.
Windows Runtime | .FILET |
---|---|
booléen | System.Boolean |
d’octets | 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 |
objet | 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 |