VintaSoft Twain .NET SDK v10.2
Vintasoft.Twain Namespace / TwainValueContainerBase Class / GetAsUInt16 Method




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
    'Usage
     
    Dim instance As TwainValueContainerBase
    Dim value As UShort
     
    value = instance.GetAsUInt16()
    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: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also