OpenTypeMethods.Convert Method

Converts a value to the specified type.

Namespace:  System.Data.Services.Providers
Assembly:  Microsoft.Data.Services (in Microsoft.Data.Services.dll)

Syntax

'Declaration
Public Shared Function Convert ( _
    value As Object, _
    type As ResourceType _
) As Object
'Usage
Dim value As Object 
Dim type As ResourceType 
Dim returnValue As Object 

returnValue = OpenTypeMethods.Convert(value, _
    type)
public static Object Convert(
    Object value,
    ResourceType type
)
public:
static Object^ Convert(
    Object^ value, 
    ResourceType^ type
)
static member Convert : 
        value:Object * 
        type:ResourceType -> Object
public static function Convert(
    value : Object, 
    type : ResourceType
) : Object

Parameters

Return Value

Type: System.Object
The converted value.

Remarks

The Convert method is used to perform a type cast on the specified value.

See Also

Reference

OpenTypeMethods Class

System.Data.Services.Providers Namespace