IconConverter.CanConvertTo(ITypeDescriptorContext, Type) Yöntem

Tanım

Bunun IconConverter , belirtilen bağlamı kullanarak bir Icon örneğini belirtilen türdeki bir örneğe dönüştürip dönüştüremeyeceğini belirler.

C#
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext context, Type destinationType);
C#
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext? context, Type? destinationType);

Parametreler

context
ITypeDescriptorContext

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

destinationType
Type

Type Dönüştürmek istediğiniz türü belirten bir.

Döndürülenler

Bu yöntem dönüştürmeyi gerçekleştirebiliyorsa IconConverter döndürürtrue; aksi takdirde döndürürfalse.

Açıklamalar

Bu yöntem yalnızca bayt dizisine veya dizesine eşitse destinationType döndürürtrue.

Şunlara uygulanır

Ürün Sürümler
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9