DataSourceCacheDurationConverter.CanConvertTo Yöntem

Tanım

Örneğin bir nesneyi verilen hedef türüne dönüştürebileceğini DataSourceCacheDurationConverter belirten bir değer döndürür.

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.

destinationType
Type

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

Döndürülenler

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

Açıklamalar

ve DataSourceCacheDurationConverter türlerine dönüştürmeyi stringInstanceDescriptor açıkça işler. Aksi takdirde, karar vermek için temel sınıfı Int32Converterolan öğesini çağırır.

Şunlara uygulanır