This documentation is archived and is not being maintained.

UInt16.GetTypeCode Method

Returns the TypeCode for value type UInt16.

The UInt16 type is not CLS-compliant. The CLS-compliant alternative type is Int32. Int16 can be used when the original value is less than half of UInt16.MaxValue. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
Public Overridable Function GetTypeCode() As TypeCode
[C#]
public virtual TypeCode GetTypeCode();
[C++]
public: virtual TypeCode GetTypeCode();
[JScript]
public function GetTypeCode() : TypeCode;

Return Value

The enumerated constant, TypeCode.UInt16.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

UInt16 Structure | UInt16 Members | System Namespace | TypeCode

Show: