Export (0) Print
Expand All

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)

member ConvertTo : 
        type:Type -> Object

Parameters

type
Type: System.Type

The target type.

Return Value

Type: System.Object
The converted value.

ExceptionCondition
ArgumentNullException

The type parameter is a null reference (Nothing in Visual Basic).

Show:
© 2014 Microsoft