다음을 통해 공유


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

매개 변수

  • sourceType
    유형: System.Type
    The type you wish to convert from.

반환 값

유형: System.Boolean
True if this converter can perform the conversion; otherwise, false.

참고 항목

참조

ReportSizeConverter 클래스

CanConvertFrom 오버로드

Microsoft.ReportingServices.RdlObjectModel 네임스페이스