ValueProviderResult.ConvertTo Method (Type)

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

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

'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)

Parameters

type
Type: System.Type

The target type.

Return Value

Type: System.Object
The converted value.

ExceptionCondition
ArgumentNullException

The type parameter is Nothing.

Show: