VintaSoft Twain .NET SDK v10.2
OpenDevice Method (VintasoftTwainApi2Controller)




Vintasoft.Twain.Web.Api2Controllers Namespace > VintasoftTwainApi2Controller Class : OpenDevice Method
The parameters, which are necessary for opening TWAIN device.
Opens the TWAIN device.
Syntax
'Declaration
 
<HttpPostAttribute()>
Public Overridable Function OpenDevice( _
   ByVal requestParams As OpenDeviceRequestParam _
) As Vintasoft.Shared.Web.BaseResponseParams
'Usage
 
Dim instance As VintasoftTwainApi2Controller
Dim requestParams As OpenDeviceRequestParam
Dim value As Vintasoft.Shared.Web.BaseResponseParams
 
value = instance.OpenDevice(requestParams)
[HttpPost()]
public virtual Vintasoft.Shared.Web.BaseResponseParams OpenDevice( 
   OpenDeviceRequestParam requestParams
)
[HttpPost()]
public: virtual Vintasoft.Shared.Web.BaseResponseParams* OpenDevice( 
   OpenDeviceRequestParam* requestParams
) 
[HttpPost()]
public:
virtual Vintasoft.Shared.Web.BaseResponseParams^ OpenDevice( 
   OpenDeviceRequestParam^ requestParams
) 

Parameters

requestParams
The parameters, which are necessary for opening TWAIN device.

Return Value

Base information about web request.
Exceptions
ExceptionDescription
Thrown if TWAIN session is wrong OR device manager is not opened.
Thrown if device is not found.
Requirements

Target Platforms: Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

See Also

Reference

VintasoftTwainApi2Controller Class
VintasoftTwainApi2Controller Members