BaseEnumStringConverter<T>.CanConvertFrom Yöntem (ITypeDescriptorContext, Type)
Bu dönüştürücü nesne verilen kaynak türü belirtilen içeriği kullanan bir dizeye dönüştürebilen olup olmadığını gösteren bir değeri alı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 CanConvertFrom ( _
context As ITypeDescriptorContext, _
sourceType As Type _
) As Boolean
public override bool CanConvertFrom(
ITypeDescriptorContext context,
Type sourceType
)
public:
virtual bool CanConvertFrom(
ITypeDescriptorContext^ context,
Type^ sourceType
) override
abstract CanConvertFrom :
context:ITypeDescriptorContext *
sourceType:Type -> bool
override CanConvertFrom :
context:ITypeDescriptorContext *
sourceType:Type -> bool
public override function CanConvertFrom(
context : ITypeDescriptorContext,
sourceType : Type
) : boolean
Parametreler
- context
Tür: System.ComponentModel.ITypeDescriptorContext
Bir ITypeDescriptorContext sağlayan bir biçimde içerik.
- sourceType
Tür: System.Type
A Type temsil eden türü içinden istediğiniz dönüştürme.
Dönüş Değeri
Tür: System.Boolean
true Bu dönüştürücü dönüştürme yapıyorsanız; Aksi takdirde, 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üvenilir kod tarafından Kitaplıklar kullanma.