PropertyPathConverter.ConvertTo Method

Definition

Converts the specified value object to the PropertyPath type.

public:
 override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, System::Globalization::CultureInfo ^ cultureInfo, System::Object ^ value, Type ^ destinationType);
public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, System.Globalization.CultureInfo cultureInfo, object value, Type destinationType);
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (typeDescriptorContext As ITypeDescriptorContext, cultureInfo As CultureInfo, value As Object, destinationType As Type) As Object

Parameters

typeDescriptorContext
ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

cultureInfo
CultureInfo

The CultureInfo to use as the current culture.

value
Object

The PropertyPath to convert.

destinationType
Type

The destination type. This is expected to be the String type.

Returns

The converted destination String.

Exceptions

The value was provided as null.

The value was not null, but was not of the expected PropertyPath type.

-or-

The destinationType was not the String type.

Applies to