This documentation is archived and is not being maintained.

IConvertible.GetTypeCode Method

Returns the TypeCode for this instance.

The IConvertible type is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
Function GetTypeCode() As TypeCode
TypeCode GetTypeCode();
TypeCode GetTypeCode();
function GetTypeCode() : TypeCode;

Return Value

The enumerated constant that is the TypeCode of the class or value type that implements this interface.


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

IConvertible Interface | IConvertible Members | System Namespace