Share via


VideoDeviceController.GetDeviceProperty(String) メソッド

定義

キャプチャ デバイス ドライバーから、指定した ID を持つ プロパティの値を取得します。 このメソッドを使用すると、特定のカメラに固有のプロパティに対してクエリを実行できます。

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 プロパティ セットで定義されます。 ID でカメラのプロパティにアクセスする例については、 拡張コントロールとメタデータのサンプルを参照してください。

適用対象

こちらもご覧ください