MediaFrameSourceController.SetPropertyByExtendedIdAsync 方法

定義

使用具有自定義標頭信息的擴充標識符,以異步方式設定 具有 MediaFrameSource 上指定標識符的屬性值。

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)

參數

extendedPropertyId

Byte[]

byte[]

包含擴充標識碼數據的位元組數位。

propertyValue

Byte[]

byte[]

位元組陣列,其中包含要為屬性設定的值。

傳回

成功完成時,異步操作會傳回 MediaFrameSourceSetPropertyStatus 值,指出作業的狀態。

常見的裝置屬性會公開為 VideoDeviceController 類別的屬性。 其他屬性定義於 屬性集KSPROPERTYSETID_ExtendedCameraControl 。 舊版屬性定義於 PROPSETID_VIDCAP_CAMERACONTROL 屬性集中。 如需依標識符存取相機屬性的範例,請參閱 擴充控件和元數據範例

屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於