DeviceSaveParameters Method |
Saves the current device parameters to a stream.
Namespace:
Atalasoft.Twain
Assembly:
Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax public int SaveParameters(
Stream stream
)
Public Function SaveParameters (
stream As Stream
) As Integer
Parameters
- stream
- Type: System.IOStream
The stream where device data will be saved.
Return Value
Type:
Int32 The number of bytes saved into the stream.
Exceptions Exception | Condition |
---|
| Thrown if the stream is null (Nothing in VB). |
| Thrown if the stream does not have write access. |
| Thrown if there is an error during processing. |
| Thrown if a connection to the device is not open. |
Remarks Use this method along with LoadParameters(Stream) to hold onto the property settings
users have selected for a device.
See Also