Språk

PropertyPathConverter.ConvertTo Metod

Definition

Konverterar det angivna värdeobjektet till PropertyPath typen.

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

Parametrar

typeDescriptorContext
ITypeDescriptorContext

En ITypeDescriptorContext som ger en formatkontext.

cultureInfo
CultureInfo

Att CultureInfo använda som den aktuella kulturen.

value
Object

Att PropertyPath konvertera.

destinationType
Type

Måltypen. Detta förväntas vara typen String .

Returer

Det konverterade målet String.

Undantag

value Angavs som null.

value var inte null, men var inte av den förväntade PropertyPath typen.

-eller-

Det destinationType var inte typen String .

Gäller för