ValueProviderResult.ConvertTo Method (Type)

Converts the value that is encapsulated by this result to the specified type.

Namespace:  System.Web.Http.ValueProviders
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Function ConvertTo ( _
    type As Type _
) As Object
'Usage
Dim instance As ValueProviderResult
Dim type As Type
Dim returnValue As Object

returnValue = instance.ConvertTo(type)
public Object ConvertTo(
    Type type
)
public:
Object^ ConvertTo(
    Type^ type
)
member ConvertTo : 
        type:Type -> Object 
public function ConvertTo(
    type : Type
) : Object

Parameters

Return Value

Type: System.Object
The converted value.

See Also

Reference

ValueProviderResult Class

ConvertTo Overload

System.Web.Http.ValueProviders Namespace