ValueProviderResult.ConvertTo Method (Type, CultureInfo)
Converts the value that is encapsulated by this result to the specified type by using the specified culture information.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
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 a null reference (Nothing in Visual Basic). |
Show: