Dela via


VideoDeviceController.SetDeviceProperty(String, Object) Method

Definition

Sets the value of the property with the specified ID on the capture device driver. You can use this method to set properties that are specific to a particular camera.

public:
 virtual void SetDeviceProperty(Platform::String ^ propertyId, Platform::Object ^ propertyValue) = SetDeviceProperty;
void SetDeviceProperty(winrt::hstring const& propertyId, IInspectable const& propertyValue);
public void SetDeviceProperty(string propertyId, object propertyValue);
function setDeviceProperty(propertyId, propertyValue)
Public Sub SetDeviceProperty (propertyId As String, propertyValue As Object)

Parameters

propertyId
String

Platform::String

winrt::hstring

The identifier of the property for which the value is set.

propertyValue
Object

Platform::Object

IInspectable

The new value of the property.

Remarks

The property ID and expected data are determined by the hardware device manufacturer.

Common device properties are exposed as properties of the VideoDeviceController class. Additional properties are defined in the KSPROPERTYSETID_ExtendedCameraControl property set. Legacy properties are defined in the PROPSETID_VIDCAP_CAMERACONTROL property set. For an example of accessing camera properties by ID, see the Extended Control and Metadata sample.

Applies to

See also