RectangleConverter.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. Bu olabilir null, bu nedenle her zaman kontrol etmelisiniz. Ayrıca, bağlam nesnesinde özellikler de döndürebilir null.

destinationType
Type

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

Döndürülenler

Bu dönüştürücü dönüştürmeyi gerçekleştirebiliyorsa, bu yöntem döndürür true ; 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.

Şunlara uygulanır