Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Windows Runtime base data types

This table lists the base data types that are supported by the Windows Runtime, and indicates the corresponding type in C#, Visual Basic, and C++.

Data typeJavaScriptC#VBC++
BooleanBooleanboolBooleanbool
ByteNumberbyteByteunsigned char
CharStringcharCharunsigned char
Char16StringcharCharwchar_t
DateTimeDateDateTimeOffsetDateTimeOffsetDateTime
DoubleNumberdoubleDoubledouble
GuidStringGuidGuidGuid
Int16NumbershortShortshort
Int32NumberintIntegerint
Int64NumberlongLong__int64
ObjectObjectobjectObjectObject^
PointPointPointPointPoint
RectRectRectRectRect
SingleNumberfloatSinglefloat
SizeSizeSizeSizeSize
StringStringstringStringString^
TimeSpanNumberTimeSpanTimeSpanTimeSpan
UInt8NumberbyteByteunsigned char
UInt16NumberushortUShortunsigned short
UInt32NumberuintUIntegerunsigned int
UInt64NumberulongULongunsigned __int64
UriUriUriUriUri^
VoidUndefinedvoidVoidvoid

 

The following table indicates the .NET types that correspond to the Windows Runtime data types.

Windows Runtime.NET
BooleanSystem.Boolean
ByteSystem.Byte
CharSystem.Char
Char16System.Char
DateTimeSystem.DateTimeOffset
DoubleSystem.Double
GuidSystem.Guid
Int16System.Int16
Int32System.Int32
Int64System.Int64
ObjectSystem.Object
SingleSystem.Single
StringSystem.String
TimeSpanSystem.TimeSpan
UInt8System.Byte
UInt16System.UInt16
UInt32System.UInt32
UInt64System.UInt64
UriSystem.Uri
VoidSystem.Void

 

 

 

Community Additions

Show:
© 2014 Microsoft