ValueProviderResult.ConvertTo Method (Type, CultureInfo)

.NET Framework (current version)
 

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

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

abstract ConvertTo : 
        type:Type *
        culture:CultureInfo -> Object
override ConvertTo : 
        type:Type *
        culture:CultureInfo -> Object

Parameters

type
Type: System.Type

The type.

culture
Type: System.Globalization.CultureInfo

The culture information.

Return Value

Type: System.Object

The converted value.

Exception Condition
ArgumentNullException

The type parameter is null.

InvalidOperationException

Conversion was unsuccessful.

.NET Framework
Available since 4.5
Return to top
Show: