Muokkaa

Jaa


ValueProviderResult.ConvertTo Method

Definition

Converts a value that is encapsulated by this result to the specified type.

Overloads

ConvertTo(Type)

Converts a value that is encapsulated by this result to the specified type.

ConvertTo(Type, CultureInfo)

Converts the value that is encapsulated by this result to the specified type by using the specified culture information.

ConvertTo(Type)

Converts a value that is encapsulated by this result to the specified type.

public:
 System::Object ^ ConvertTo(Type ^ type);
public object ConvertTo (Type type);
member this.ConvertTo : Type -> obj
Public Function ConvertTo (type As Type) As Object

Parameters

type
Type

The type.

Returns

The converted value.

Exceptions

The type parameter is null.

Conversion was unsuccessful.

Applies to

ConvertTo(Type, CultureInfo)

Converts the value that is encapsulated by this result to the specified type by using the specified culture information.

public:
 virtual System::Object ^ ConvertTo(Type ^ type, System::Globalization::CultureInfo ^ culture);
public virtual object ConvertTo (Type type, System.Globalization.CultureInfo culture);
abstract member ConvertTo : Type * System.Globalization.CultureInfo -> obj
override this.ConvertTo : Type * System.Globalization.CultureInfo -> obj
Public Overridable Function ConvertTo (type As Type, culture As CultureInfo) As Object

Parameters

type
Type

The type.

culture
CultureInfo

The culture information.

Returns

The converted value.

Exceptions

The type parameter is null.

Conversion was unsuccessful.

Applies to