PointConverter.CanConvertTo(ITypeDescriptorContext, Type) Yöntem

Tanım

Bu dönüştürücüsü bağlamı kullanarak bir nesneyi verilen hedef türüne dönüştürebilir olup olmadığını gösteren bir değer alır.

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext? context, Type? destinationType);
public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext context, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As Boolean

Parametreler

context
ITypeDescriptorContext

Biçim ITypeDescriptorContext bağlamı sağlayan nesne.

destinationType
Type

Type Dönüştürmek istediğiniz türü temsil eden nesne.

Döndürülenler

true bu dönüştürücü dönüştürmeyi gerçekleştirebiliyorsa; aksi takdirde , false.

Açıklamalar

parametresi, context bu dönüştürücüye çağrılan ortam hakkında ek bilgi almak için kullanılabilir. Bu olabilir null, bu nedenle her zaman kontrol etmelisiniz. Ayrıca, bağlam nesnesinde özellikler de döndürebilir null.

Şunlara uygulanır