Partilhar via


Método CanConvertFrom (ITypeDescriptorContext, Type)

Esta API tem suporte para a infraestrutura do .NET Framework e não deve ser usada diretamente do seu código.

Este membro substitui TypeConverter. . :: . .CanConvertFrom(ITypeDescriptorContext, Type).

Namespace:  Microsoft.ReportingServices.RdlObjectModel
Assembly:  Microsoft.ReportingServices.Designer.Controls (em Microsoft.ReportingServices.Designer.Controls.dll)

Sintaxe

'Declaração
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

Valor de retorno

Tipo: System. . :: . .Boolean