类别类名说明Visual Basic 数据类型C# 数据类型C++ 托管扩展数据类型JScript 数据类型
整数Byte8 位的无符号整数。BytebytecharByte
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
SByte8 位的有符号整数。 不符合 CLS。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
SByte 无内置类型。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
sbytesigned charSByte
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
Int1616 位的有符号整数。Shortshortshortshort
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
Int3232 位的有符号整数。Integerintint - 或 -DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
longDZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
int
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
Int6464 位的有符号整数。Longlong__int64long
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
UInt1616 位的无符号整数。 不符合 CLS。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
UInt16 无内置类型。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
ushortunsigned shortUInt16
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
UInt3232 位的无符号整数。 不符合 CLS。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
UInt32 无内置类型。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
uintunsigned int - 或 -DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
unsigned longDZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
UInt32
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
UInt6464 位的无符号整数。 不符合 CLS。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
UInt64 无内置类型。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
ulongunsigned __int64UInt64
浮点Single单精度(32 位)浮点数字。Singlefloatfloatfloat
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
Double双精度(64 位)浮点数字。Doubledoubledoubledouble
逻辑Boolean布尔值(真或假)。Booleanboolboolbool
其他CharUnicode(16 位)字符。Charcharwchar_tchar
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
Decimal96 位十进制值。DecimaldecimalDecimalDecimal
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
IntPtr大小取决于基础平台(32 位平台上为 32 位值,64 位平台上为 64 位值)的有符号整数。IntPtr 无内置类型。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
IntPtr 无内置类型。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
IntPtr 无内置类型。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
IntPtr
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
UIntPtr大小取决于基础平台的无符号整数(32 位平台上为 32 位值,64 位平台上为 64 位值)。 不符合 CLS。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
UIntPtr 无内置类型。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
UIntPtr 无内置类型。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
UIntPtr 无内置类型。DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
UIntPtr
类对象Object对象层次结构的根。ObjectobjectObject*Object
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
StringUnicode 字符的不变的定长串。StringstringString*String
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
平台调用数据类型 DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
DZX7¢Î&dot÷ [url]www.cnntec.com[/url]¨…gúT‚ösð
Wtypes.h 中的非托管类型非托管 C 语言类型托管类名说明
HANDLEvoid*System.IntPtr32 位
BYTEunsigned charSystem.Byte8 位
SHORTshortSystem.Int1616 位
WORDunsigned shortSystem.UInt1616 位
INTintSystem.Int3232 位
UINTunsigned intSystem.UInt3232 位
LONGlongSystem.Int3232 位
BOOLlongSystem.Int3232 位
DWORDunsigned longSystem.UInt3232 位
ULONGunsigned longSystem.UInt3232 位
CHARcharSystem.Char用 ANSI 修饰。
LPSTRchar*System.StringSystem.StringBuilder用 ANSI 修饰。
LPCSTRConst char*System.StringSystem.StringBuilder用 ANSI 修饰。
LPWSTRwchar_t*System.StringSystem.StringBuilder用 Unicode 修饰。
LPCWSTRConst wchar_t*System.StringSystem.StringBuilder用 Unicode 修饰。
FLOATFloatSystem.Single32 位
DOUBLEDoubleSystem.Double64 位