BaseEnumStringConverter<T>.CanConvertTo Yöntem (ITypeDescriptorContext, Type)
Bu dönüştürücü nesne belirtilen türe dönüştürmek olup olmadığını gösteren bir değeri döndürür.
Ad alanı: Microsoft.VisualStudio.TestTools.WebTesting
Derleme: Microsoft.VisualStudio.QualityTools.WebTestFramework (Microsoft.VisualStudio.QualityTools.WebTestFramework.dll içinde)
Sözdizimi
'Bildirim
Public Overrides Function CanConvertTo ( _
context As ITypeDescriptorContext, _
destinationType As Type _
) As Boolean
public override bool CanConvertTo(
ITypeDescriptorContext context,
Type destinationType
)
public:
virtual bool CanConvertTo(
ITypeDescriptorContext^ context,
Type^ destinationType
) override
abstract CanConvertTo :
context:ITypeDescriptorContext *
destinationType:Type -> bool
override CanConvertTo :
context:ITypeDescriptorContext *
destinationType:Type -> bool
public override function CanConvertTo(
context : ITypeDescriptorContext,
destinationType : Type
) : boolean
Parametreler
context
Tür: ITypeDescriptorContextBir ITypeDescriptorContext , biçim içerik sağlar.
destinationType
Tür: TypeA Type dönüştürmek istediğiniz türünü temsil eder.
Dönüş Değeri
Tür: Boolean
true Bu dönüştürücü dönüştürme yapıyorsanız; Aksi halde, false.
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen Güvenilen Koddan Kitaplıkları Kullanma.