VideoDeviceController.SetDevicePropertyById(String, Object) Method

Definition

Sets the value of the property with the specified ID from the capture device driver, using an extended ID with custom header information and providing the value as an object.

public:
 virtual VideoDeviceControllerSetDevicePropertyStatus SetDevicePropertyById(Platform::String ^ propertyId, Platform::Object ^ propertyValue) = SetDevicePropertyById;
VideoDeviceControllerSetDevicePropertyStatus SetDevicePropertyById(winrt::hstring const& propertyId, IInspectable const& propertyValue);
public VideoDeviceControllerSetDevicePropertyStatus SetDevicePropertyById(string propertyId, object propertyValue);
function setDevicePropertyById(propertyId, propertyValue)
Public Function SetDevicePropertyById (propertyId As String, propertyValue As Object) As VideoDeviceControllerSetDevicePropertyStatus

Parameters

propertyId
String

Platform::String

winrt::hstring

A byte array containing the extended identifier data.

propertyValue
Object

Platform::Object

IInspectable

An object representing the data to be assigned to the specified property.

Returns

A VideoDeviceControllerSetDevicePropertyStatus object describing the status of the operation.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

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