次の方法で共有


ReportSizeConverter.CanConvertFrom メソッド (ITypeDescriptorContext, Type)

この API は、SQL Server 2012 インフラストラクチャをサポートします。独自に作成したコードから直接使用するためのものではありません。

このコンバーターが、指定したコンテキストを使用して、指定した変換元の型のオブジェクトを変換できるかどうかを返します。

名前空間:  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

パラメーター

戻り値

型: System.Boolean
このコンバーターで変換を実行できる場合は true、それ以外の場合は false。

関連項目

参照

ReportSizeConverter クラス

CanConvertFrom オーバーロード

Microsoft.ReportingServices.RdlObjectModel 名前空間