Dela via


MediaFrameSourceController.SetPropertyByExtendedIdAsync Method

Definition

Asynchronously sets the value of the property with the specified ID on a MediaFrameSource, using an extended ID with custom header information.

public:
 virtual IAsyncOperation<MediaFrameSourceSetPropertyStatus> ^ SetPropertyByExtendedIdAsync(Platform::Array <byte> ^ extendedPropertyId, Platform::Array <byte> ^ propertyValue) = SetPropertyByExtendedIdAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<MediaFrameSourceSetPropertyStatus> SetPropertyByExtendedIdAsync(winrt::array_view <byte> const& extendedPropertyId, winrt::array_view <byte> const& propertyValue);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<MediaFrameSourceSetPropertyStatus> SetPropertyByExtendedIdAsync(byte[] extendedPropertyId, byte[] propertyValue);
function setPropertyByExtendedIdAsync(extendedPropertyId, propertyValue)
Public Function SetPropertyByExtendedIdAsync (extendedPropertyId As Byte(), propertyValue As Byte()) As IAsyncOperation(Of MediaFrameSourceSetPropertyStatus)

Parameters

extendedPropertyId

Byte[]

byte[]

A byte array containing the extended identifier data.

propertyValue

Byte[]

byte[]

A byte array containing the value to be set for the property.

Returns

An asynchronous operation that, upon successful completion, returns a MediaFrameSourceSetPropertyStatus value indicating the status of the operation.

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.

Attributes

Windows requirements

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

Applies to