DeviceFactoryTryOpenPort Method

CVB.Net Documentation
Tries to 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

public static bool TryOpenPort(
	string provider,
	int port,
	out Device device
)

Parameters

provider
Type: SystemString
Name of the device provider.
port
Type: SystemInt32
Port number to open.
device
Type: Stemmer.CvbDevice
Device object on success; null otherwise.

Return Value

Type: Boolean
true on success; false on failure.
Remarks

For this method the provider is a vin-driver on which a specific port.

If the driver does not support the camera select interfaces, you can set the port parameter to 0. For non-0 values this method will fail.

See Also

Reference