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
[C#]
public static TypeCode GetTypeCode(
 object value
);
[C++]
public: static TypeCode GetTypeCode(
 Object* value
);
[JScript]
public static function GetTypeCode(
   value : Object
) : TypeCode;

Parameters

value
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).

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

Convert Class | Convert Members | System Namespace

Show: