VintaSoft Twain .NET SDK 15.3: Руководство для .NET разработчика
Vintasoft.Imaging.TypeConverters Namespace / ResolutionConverter Class / CanConvertFrom Methods / CanConvertFrom(ITypeDescriptorContext,Type) Method
Синтаксис Требования Смотрите также
В этом разделе
    CanConvertFrom(ITypeDescriptorContext,Type) Метод (ResolutionConverter)
    В этом разделе
    Determines that this converter can convert an object in the given source type to the native type of the converter.
    Синтаксис
    'Declaration
    
    Public Overloads Overrides Function CanConvertFrom( _
    ByVal context
    A formatter context. This object can be used to get additional information about the environment this converter is being called from. This may be null, so you should always check. Also, properties on the context object may also return null.
    As System.ComponentModel.ITypeDescriptorContext, _
    ByVal sourceType
    The type you want to convert from.
    As System.Type _
    ) As Boolean

    Parameters

    context
    A formatter context. This object can be used to get additional information about the environment this converter is being called from. This may be null, so you should always check. Also, properties on the context object may also return null.
    sourceType
    The type you want to convert from.

    Return Value

    True if this object can perform the conversion; otherwise, false.
    Требования

    Целевые платформы: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    Смотрите также