This documentation is archived and is not being maintained.

DBConvert.ChangeType Method (Object, Type)

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Changes the specified value to the specified type.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public static Object ChangeType(
	Object value,
	Type type
)

Parameters

value
Type: System.Object

The object to be converted.

type
Type: System.Type

The type to convert the object to.

Return Value

Type: System.Object
An object that contains the converted value of the specified type.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5
Show: