ValueProviderResult.ConvertTo Method (Type)

.NET Framework (current version)
 

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

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

public object ConvertTo(
	Type type
)

Parameters

type
Type: System.Type

The type.

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: