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.
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.
| Exception | Condition |
|---|---|
| ArgumentNullException | The type parameter is null. |
| InvalidOperationException | Conversion was unsuccessful. |
.NET Framework
Available since 4.5
Available since 4.5
Show: