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)

'Declaration
Public Overridable Function ConvertTo ( _
	type As Type, _
	culture As CultureInfo _
) As Object
'Usage
Dim instance As ValueProviderResult 
Dim type As Type 
Dim culture As CultureInfo 
Dim returnValue As Object 

returnValue = instance.ConvertTo(type, _
	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.

ExceptionCondition
ArgumentNullException

The type parameter is Nothing.

Show: