次の方法で共有


Windows ランタイムの基本データ型

次の表に、Windows ランタイムでサポートされている基本データ型の一覧を示し、C#、Visual Basic、および C++ の対応する型を示します。

データ型 JavaScript C# VB C++
Boolean Boolean ブール する Boolean ブール する
バイト 数値 バイト バイト 符号なし文字 する
Char 文字列 char する Char 符号なし文字 する
Char16 文字列 char する Char wchar_t
DateTime 日付 DateTimeOffset する DateTimeOffset する DateTime
ダブル 数値 ダブル ダブル ダブル
guid 文字列 guid guid guid
Int16 数値 短い Short 短い
Int32 数値 int 整数 int
Int64 数値 長い Long __int64
オブジェクトの オブジェクトの オブジェクト オブジェクトの Object^
ポイント ポイント ポイント ポイント ポイント
Rect Rect Rect Rect Rect
Single 数値 float する Single float する
サイズの サイズの サイズの サイズの サイズの
文字列 文字列 文字列 する 文字列 String^
TimeSpan 数値 TimeSpan TimeSpan TimeSpan
UInt8 する 数値 バイト バイト 符号なし文字 する
UInt16 する 数値 ushort する UShort する 符号なし short する
UInt32 する 数値 uint する UInteger する 符号なし int する
UInt64 する 数値 ulong する ULong する 署名されていない__int64 する
Uri Uri Uri Uri Uri^
Void 未定義 void Void void

 

次の表は、Windows ランタイムのデータ型に対応する .NET 型を示しています。

Windows ランタイム 。網
Boolean System.Boolean
バイト System.Byte
Char System.Char
Char16 System.Char
DateTime System.DateTimeOffset
ダブル System.Double
guid System.Guid
Int16 System.Int16
Int32 System.Int32
Int64 System.Int64
オブジェクトの System.Object
Single System.Single
文字列 System.String
TimeSpan System.TimeSpan
UInt8 する System.Byte
UInt16 する System.UInt16
UInt32 する System.UInt32
UInt64 する System.UInt64
Uri System.Uri
Void System.Void