Partager via


DBConvert.ChangeType<T> Method (Object)

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 current type.

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

Syntax

'Declaration
Public Shared Function ChangeType(Of T) ( _
    value As Object _
) As T
public static T ChangeType<T>(
    Object value
)

Type Parameters

  • T
    The type to change to.

Parameters

Return Value

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

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.