VintaSoft Twain .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Twain Namespace / TwainValueContainerBase Class / GetAsUInt16() Method
Syntax Exceptions Requirements SeeAlso
In This Topic
    GetAsUInt16() Method (TwainValueContainerBase)
    In This Topic
    Returns current value of TWAIN value as UInt16 value.
    Syntax
    'Declaration
    
    Public Function GetAsUInt16() As UShort
    
    
    public ushort GetAsUInt16()
    
    
    public: ushort GetAsUInt16()
    
    
    public:
    ushort GetAsUInt16()

    Return Value

    Current value of TWAIN value as UInt16 value.
    Exceptions
    ExceptionDescription
    Thrown if TWAIN value does not support current value OR TWAIN value has wrong container.
    Thrown if current value of TWAIN value cannot be converted to UInt16.
    Requirements

    Target Platforms: .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also