VideoDeviceController.GetDeviceProperty(String) 方法

定義

從擷取設備驅動器取得具有指定標識碼的屬性值。 您可以使用這個方法來查詢特定相機特有的屬性。

public:
 virtual Platform::Object ^ GetDeviceProperty(Platform::String ^ propertyId) = GetDeviceProperty;
IInspectable GetDeviceProperty(winrt::hstring const& propertyId);
public object GetDeviceProperty(string propertyId);
function getDeviceProperty(propertyId)
Public Function GetDeviceProperty (propertyId As String) As Object

參數

propertyId
String

Platform::String

winrt::hstring

擷取值之屬性的標識碼。

傳回

Object

Platform::Object

IInspectable

屬性值。

備註

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

適用於

另請參閱