Udostępnij za pośrednictwem


VideoDeviceController.SetDevicePropertyByExtendedId(Byte[], Byte[]) 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 a byte array.

public:
 virtual VideoDeviceControllerSetDevicePropertyStatus SetDevicePropertyByExtendedId(Platform::Array <byte> ^ extendedPropertyId, Platform::Array <byte> ^ propertyValue) = SetDevicePropertyByExtendedId;
VideoDeviceControllerSetDevicePropertyStatus SetDevicePropertyByExtendedId(winrt::array_view <byte> const& extendedPropertyId, winrt::array_view <byte> const& propertyValue);
public VideoDeviceControllerSetDevicePropertyStatus SetDevicePropertyByExtendedId(byte[] extendedPropertyId, byte[] propertyValue);
function setDevicePropertyByExtendedId(extendedPropertyId, propertyValue)
Public Function SetDevicePropertyByExtendedId (extendedPropertyId As Byte(), propertyValue As Byte()) As VideoDeviceControllerSetDevicePropertyStatus

Parameters

extendedPropertyId

Byte[]

byte[]

A byte array containing the extended identifier data.

propertyValue

Byte[]

byte[]

A byte array containing 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

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