Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Public Overridable Function ConvertTo ( _
type As Type, _
culture As CultureInfo _
) As Object
public virtual Object ConvertTo(
Type type,
CultureInfo culture
)
public:
virtual Object^ ConvertTo(
Type^ type,
CultureInfo^ culture
)
Parameters
- type
Type: System.Type
The target type.
- culture
Type: System.Globalization.CultureInfo
The culture to use in the conversion.
Return Value
Type: System.Object
The converted value.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The type parameter is null reference (Nothing in Visual Basic). |