Partager via


DBConvert.ChangeType Method (Object, Type)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Shared Function ChangeType ( _
    value As Object, _
    type As Type _
) As Object
public static Object ChangeType(
    Object value,
    Type type
)

Parameters

  • 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.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.