Share via


DataServiceProviderMethods.Convert Method

Casts a value to a 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 = DataServiceProviderMethods.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

  • value
    Type: System.Object
    The value to cast to the requested type.

Return Value

Type: System.Object
The value cast to the requested type.

See Also

Reference

DataServiceProviderMethods Class

System.Data.Services.Providers Namespace