VideoDeviceController.SetDevicePropertyByExtendedId(Byte[], Byte[]) 方法

定義

使用具有自定義標頭信息的擴充標識符,並以位元組陣列的形式提供值,使用擷取設備驅動器中指定標識碼的屬性值。

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

參數

extendedPropertyId

Byte[]

byte[]

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

propertyValue

Byte[]

byte[]

位元組陣列,包含要指派給指定屬性的數據。

傳回

VideoDeviceControllerSetDevicePropertyStatus 物件,描述作業的狀態。

Windows 需求

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

備註

屬性標識碼和預期的數據是由硬體裝置製造商決定。

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

適用於