Determines if a capability is available from the device.
It's unlikely that any one device supports all of the properties and features. You can use this method to find out if a property is get-able and/or set-able. This can also be used to help determine if the device is a camera by checking for camera specific properties, such as FlashUsed or BatteryPercentage.
public bool QueryCapability( DeviceCapability capability, bool canSet )
Public Function QueryCapability ( capability As DeviceCapability, canSet As Boolean ) As Boolean
|Thrown if a connection to the device is not open.|
Device dev = this.acquisition.Devices.Default; dev.Open(); // See if you can set the Resolution. bool canSetRes = dev.QueryCapability(DeviceCapability.ResolutionX, true); dev.Close();
Dim dev As Device = Me.acquisition.Devices.Default dev.Open() ' See if you can set the Resolution. Dim canSetRes As Boolean = dev.QueryCapability(DeviceCapability.ResolutionX,True) dev.Close()