Partager via


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.Http.ValueProviders
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'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)
public virtual Object ConvertTo(
    Type type,
    CultureInfo culture
)
public:
virtual Object^ ConvertTo(
    Type^ type, 
    CultureInfo^ culture
)
abstract ConvertTo : 
        type:Type * 
        culture:CultureInfo -> Object 
override ConvertTo : 
        type:Type * 
        culture:CultureInfo -> Object 
public function ConvertTo(
    type : Type, 
    culture : CultureInfo
) : Object

Parameters

Return Value

Type: System.Object
The converted value.

See Also

Reference

ValueProviderResult Class

ConvertTo Overload

System.Web.Http.ValueProviders Namespace