Parameters
- stream
- Stream to save the current values of capabilities.
| Exception | Description |
|---|---|
| System.ArgumentNullException | Thrown if stream is null (Nothing in VB). |
| System.ArgumentException | Thrown if the stream does not support writing. |
| TwainInvalidStateException | Thrown if device is in wrong state. |
| TwainDeviceCapabilityException | Thrown if device does not support capability. |
| DebuggerException | Thrown if the .NET debugger is used and the function evaluation requires all threads to run. |
The method ignores the "custom" capabilities, i.e. capabilities, which are added using the Add(UInt16) method.
This C#/VB.NET code shows how to save values of current device capabilities to a file.
Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5