PropertyPathConverter.ConvertTo Método

Definição

Converte o objeto de valor especificado para o 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

E ITypeDescriptorContext isso fornece um contexto de formato.

cultureInfo
CultureInfo

O CultureInfo para usar como cultura atual.

value
Object

O PropertyPath para converter.

destinationType
Type

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

Devoluções

O destino Stringconvertido .

Exceções

O value foi fornecido como null.

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

-ou-

Não destinationType era o String tipo.

Aplica-se a