VintaSoft Twain .NET SDK v10.2
DeviceAsyncEventArgs Constructor(String,PowerSupplyMode)




Vintasoft.Twain Namespace > DeviceAsyncEventArgs Class > DeviceAsyncEventArgs Constructor : DeviceAsyncEventArgs Constructor(String,PowerSupplyMode)
The name of the device that generated the event.
The current power supply in use.
Initializes a new instance of the DeviceAsyncEventArgs class.
Syntax
'Declaration
 
Public Function New( _
   ByVal deviceName As String, _
   ByVal powerSupply As PowerSupplyMode _
)
'Usage
 
Dim deviceName As String
Dim powerSupply As PowerSupplyMode
 
Dim instance As New DeviceAsyncEventArgs(deviceName, powerSupply)
public DeviceAsyncEventArgs( 
   string deviceName,
   PowerSupplyMode powerSupply
)
public: DeviceAsyncEventArgs( 
   string* deviceName,
   PowerSupplyMode powerSupply
)
public:
DeviceAsyncEventArgs( 
   String^ deviceName,
   PowerSupplyMode powerSupply
)

Parameters

deviceName
The name of the device that generated the event.
powerSupply
The current power supply in use.
Requirements

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

See Also

Reference

DeviceAsyncEventArgs Class
DeviceAsyncEventArgs Members
Overload List