This documentation is archived and is not being maintained.

Convert.GetTypeCode Method

Returns the TypeCode for the specified object.

[Visual Basic]
Public Shared Function GetTypeCode( _
   ByVal value As Object _
) As TypeCode
public static TypeCode GetTypeCode(
 object value
public: static TypeCode GetTypeCode(
 Object* value
public static function GetTypeCode(
   value : Object
) : TypeCode;


An Object that implements the IConvertible interface.

Return Value

The System.TypeCode for value, or TypeCode.Empty if value is a null reference (Nothing in Visual Basic).


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

Convert Class | Convert Members | System Namespace