ReportSizeConverter.CanConvertFrom 方法 (ITypeDescriptorContext, Type)
此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。
Returns whether this converter can convert an object in the given source type using the specified context.
命名空間: Microsoft.ReportingServices.RdlObjectModel
組件: Microsoft.ReportingServices.Designer.Controls (在 Microsoft.ReportingServices.Designer.Controls.dll 中)
語法
'宣告
Public Overrides Function CanConvertFrom ( _
context As ITypeDescriptorContext, _
sourceType As Type _
) As Boolean
'用途
Dim instance As ReportSizeConverter
Dim context As ITypeDescriptorContext
Dim sourceType As Type
Dim returnValue As Boolean
returnValue = instance.CanConvertFrom(context, _
sourceType)
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
參數
- context
型別:System.ComponentModel.ITypeDescriptorContext
Provides the format context.
- sourceType
型別:System.Type
The type you wish to convert from.
傳回值
型別:System.Boolean
True if this converter can perform the conversion; otherwise, false.