Open a device with the given provider and
port.
Namespace: Stemmer.Cvb
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
Parameters
- provider
- Type: SystemString
Name of the device provider. - port
- Type: SystemInt32
Port number to open.
Return Value
Type: DeviceDevice object for given provider and port.
Exceptions
Exception | Condition |
---|---|
IOException | If the given provider could not be opened. |
ArgumentOutOfRangeException | If the given port is outside its allowed range. |
NullReferenceException | If camera select interfaces are missing. |
Remarks
For this method the provider is a vin-driver on which a specific port is to be opened.
If the driver does not support camera select interfaces, you can set the port parameter to 0. For non-0 values an exception will be thrown.
See Also