Visual Basic (Declaration) | |
---|---|
Public Property Event As TwainCapabilityValue |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As TwainDeviceEvent Dim value As TwainCapabilityValue instance.Event = value value = instance.Event |
C# | |
---|---|
public TwainCapabilityValue Event {get; set;} |
C++/CLI | |
---|---|
public: property TwainCapabilityValue Event { TwainCapabilityValue get(); void set ( TwainCapabilityValue value); } |
Property Value
Device events used by the TWAIN source. Possible values are (according to the TWAIN 2.0 specification):- TwainCapabilityValue.DeviceEventCustomEventsBaseline for events specific to a given Source.
- TwainCapabilityValue.DeviceEventCheckAutomaticCaptureThe automatic capture settings on the device have been changed by the user.
- TwainCapabilityValue.DeviceEventCheckBatteryThe status of the battery has changed.
- TwainCapabilityValue.DeviceEventCheckDeviceOnlineThe device has been turned off and on.
- TwainCapabilityValue.DeviceEventCheckFlashThe flash setting on the device has been changed by the user.
- TwainCapabilityValue.DeviceEventCheckPowerSupplyThe power supply has been changed (for instance, the user may have just connected AC to a device that was running on battery power).
- TwainCapabilityValue.DeviceEventCheckResolutionThe x/y resolution setting on the device has been changed by the user.
- TwainCapabilityValue.DeviceEventDeviceAddedThe user has added a device (for instance a memory card in a digital camera).
- TwainCapabilityValue.DeviceEventDeviceOfflineA device has become unavailable, but has not been removed.
- TwainCapabilityValue.DeviceEventDeviceReadyThe device is ready to capture an image.
- TwainCapabilityValue.DeviceEventDeviceRemovedThe user has removed a device.
- TwainCapabilityValue.DeviceEventImageCapturedThe user has captured an image to the device’s internal storage.
- TwainCapabilityValue.DeviceEventImageDeletedThe user has removed an image from the device’s internal storage.
- TwainCapabilityValue.DeviceEventPaperDoubleFeedTwo or more sheets of paper have been fed together.
- TwainCapabilityValue.DeviceEventPaperJamThe device’s document feeder has jammed.
- TwainCapabilityValue.DeviceEventLampFailureThe device’s light source has failed.
- TwainCapabilityValue.DeviceEventPowerSaveThe device has powered down to save energy.
- TwainCapabilityValue.DeviceEventPowerSaveNotifyThe device is about to power down to save energy.
Refer to TwainSession.GetDeviceEventData example.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7