VintaSoft Twain .NET SDK v10.2
CloseDeviceManager Method (IVintasoftTwainWcfService)




Vintasoft.Twain.Web.WcfServices Namespace > IVintasoftTwainWcfService Interface : CloseDeviceManager Method
The parameters, which are necessary for closing TWAIN device manager.
Closes the TWAIN device manager.
Syntax
'Declaration
 
<OperationContractAttribute(Name="CloseDeviceManager", Action="CloseDeviceManager")>
<WebInvokeAttribute(Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json, 
   IsBodyStyleSetExplicitly=True, 
   IsRequestFormatSetExplicitly=True, 
   IsResponseFormatSetExplicitly=True)>
Function CloseDeviceManager( _
   ByVal requestParams As WebTwainRequestParamBase _
) As Vintasoft.Shared.Web.BaseResponseParams
'Usage
 
Dim instance As IVintasoftTwainWcfService
Dim requestParams As WebTwainRequestParamBase
Dim value As Vintasoft.Shared.Web.BaseResponseParams
 
value = instance.CloseDeviceManager(requestParams)
[OperationContract(Name="CloseDeviceManager", Action="CloseDeviceManager")]
[WebInvoke(Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json, 
   IsBodyStyleSetExplicitly=true, 
   IsRequestFormatSetExplicitly=true, 
   IsResponseFormatSetExplicitly=true)]
Vintasoft.Shared.Web.BaseResponseParams CloseDeviceManager( 
   WebTwainRequestParamBase requestParams
)
[OperationContract(Name="CloseDeviceManager", Action="CloseDeviceManager")]
[WebInvoke(Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json, 
   IsBodyStyleSetExplicitly=true, 
   IsRequestFormatSetExplicitly=true, 
   IsResponseFormatSetExplicitly=true)]
Vintasoft.Shared.Web.BaseResponseParams* CloseDeviceManager( 
   WebTwainRequestParamBase* requestParams
) 
[OperationContract(Name="CloseDeviceManager", Action="CloseDeviceManager")]
[WebInvoke(Method="POST", 
   RequestFormat=WebMessageFormat.Json, 
   ResponseFormat=WebMessageFormat.Json, 
   IsBodyStyleSetExplicitly=true, 
   IsRequestFormatSetExplicitly=true, 
   IsResponseFormatSetExplicitly=true)]
Vintasoft.Shared.Web.BaseResponseParams^ CloseDeviceManager( 
   WebTwainRequestParamBase^ requestParams
) 

Parameters

requestParams
The parameters, which are necessary for closing TWAIN device manager.

Return Value

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

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

See Also

Reference

IVintasoftTwainWcfService Interface
IVintasoftTwainWcfService Members