ValueProviderResult.ConvertTo Method
Converts a value that is encapsulated by this result to the specified type.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | ConvertTo(Type) | Converts the value that is encapsulated by this result to the specified type. |
![]() | ConvertTo(Type, CultureInfo) | Converts the value that is encapsulated by this result to the specified type by using the specified culture information. |
ValueProviderResult.ConvertTo Method (Type)
Converts the value that is encapsulated by this result to the specified type.
Parameters
- type
-
Type:
System.Type
The target type.
| Exception | Condition |
|---|---|
| ArgumentNullException | The type parameter is null. |
ValueProviderResult.ConvertTo Method (Type, CultureInfo)
Converts the value that is encapsulated by this result to the specified type by using the specified culture information.
Parameters
- type
-
Type:
System.Type
The target type.
- culture
-
Type:
System.Globalization.CultureInfo
The culture to use in the conversion.
| Exception | Condition |
|---|---|
| ArgumentNullException | The type parameter is null. |
Show:
