Langue

PropertyPathConverter.ConvertTo Méthode

Définition

Convertit l’objet valeur spécifié en 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

Paramètres

typeDescriptorContext
ITypeDescriptorContext

Qui ITypeDescriptorContext fournit un contexte de format.

cultureInfo
CultureInfo

À CultureInfo utiliser comme culture actuelle.

value
Object

À PropertyPath convertir.

destinationType
Type

Type de destination. Il s’agit du String type.

Retours

Destination convertie String.

Exceptions

Il value a été fourni en tant que null.

Ce value n’était pas nullle cas, mais n’était pas du type attendu PropertyPath .

- ou -

Ce destinationType n’était pas le String type.

S’applique à