VideoDeviceController.SetDevicePropertyById(String, 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

參數

propertyId
String

Platform::String

winrt::hstring

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

propertyValue
Object

Platform::Object

IInspectable

物件,表示要指派給指定屬性的數據。

傳回

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

Windows 需求

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

備註

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

適用於