Share via


Windows-Runtime Basisdatentypen

In dieser Tabelle werden die Basisdatentypen aufgelistet, die vom Windows-Runtime unterstützt werden, und gibt den entsprechenden Typ in C#, Visual Basic und C++ an.

Datentyp JavaScript C# VB C++
Boolescher Wert Boolean bool Boolean bool
Byte Number Byte Byte unsigned char
Char String char Char unsigned char
Char16 String char Char wchar_t
DateTime Datum DateTimeOffset DateTimeOffset DateTime
Double Number double Double double
Guid String Guid Guid Guid
Int16 Number short Short short
Int32 Number int Integer int
Int64 Number long Long __int64
Object Object object Object Object^
Point Point Point Point Point
Rect Rect Rect Rect Rect
Single Number float Single float
Größe Größe Größe Größe Größe
String String string String String^
TimeSpan Number TimeSpan TimeSpan TimeSpan
UInt8 Number Byte Byte unsigned char
UInt16 Number ushort UShort unsigned short
UInt32 Number uint UInteger unsigned int
UInt64 Number ulong ULong __int64 ohne Vorzeichen
URI URI URI URI Uri^
Void Undefiniert void Void void

 

In der folgenden Tabelle sind die .NET-Typen aufgeführt, die den Windows-Runtime Datentypen entsprechen.

Windows-Runtime .NET
Boolean 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
Single System.Single
String System.String
TimeSpan System.TimeSpan
UInt8 System.Byte
UInt16 System.UInt16
UInt32 System.UInt32
UInt64 System.UInt64
URI System.Uri
Void System.Void