Compartir a través de


ReportSizeConverter.CanConvertFrom Método (ITypeDescriptorContext, Type)

Esta API admite la infraestructura de SQL Server 2012 y no está prevista su utilización directa desde el código.

Returns whether this converter can convert an object in the given source type using the specified context.

Espacio de nombres:  Microsoft.ReportingServices.RdlObjectModel
Ensamblado:  Microsoft.ReportingServices.Designer.Controls (en Microsoft.ReportingServices.Designer.Controls.dll)

Sintaxis

'Declaración
Public Overrides Function CanConvertFrom ( _
    context As ITypeDescriptorContext, _
    sourceType As Type _
) As Boolean
'Uso
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

Parámetros

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

Valor devuelto

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

Vea también

Referencia

ReportSizeConverter Clase

Sobrecarga de CanConvertFrom

Espacio de nombres Microsoft.ReportingServices.RdlObjectModel