PropertyPathConverter.ConvertTo Método

Definição

Converte o objeto de valor especificado no PropertyPath tipo.

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

Parâmetros

typeDescriptorContext
ITypeDescriptorContext

Um ITypeDescriptorContext que fornece um contexto de formato.

cultureInfo
CultureInfo

O CultureInfo para usar como a cultura atual.

value
Object

O PropertyPath para converter.

destinationType
Type

O tipo de destino. Espera-se que esse seja o String tipo.

Retornos

O destino Stringconvertido.

Exceções

O value foi fornecido como null.

O value não nullfoi, mas não era do tipo esperado PropertyPath .

- ou -

O destinationType tipo não era.String

Aplica-se a