MediaFrameSourceController.SetPropertyAsync(String, Object) メソッド

定義

MediaFrameSource プロパティの値を非同期に設定し、設定操作の結果の状態を説明する MediaFrameSourceSetPropertyStatus オブジェクトを返します。

public:
 virtual IAsyncOperation<MediaFrameSourceSetPropertyStatus> ^ SetPropertyAsync(Platform::String ^ propertyId, Platform::Object ^ propertyValue) = SetPropertyAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<MediaFrameSourceSetPropertyStatus> SetPropertyAsync(winrt::hstring const& propertyId, IInspectable const& propertyValue);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<MediaFrameSourceSetPropertyStatus> SetPropertyAsync(string propertyId, object propertyValue);
function setPropertyAsync(propertyId, propertyValue)
Public Function SetPropertyAsync (propertyId As String, propertyValue As Object) As IAsyncOperation(Of MediaFrameSourceSetPropertyStatus)

パラメーター

propertyId
String

Platform::String

winrt::hstring

設定するメディア フレーム ソース プロパティの識別子。

propertyValue
Object

Platform::Object

IInspectable

設定するメディア フレーム ソース プロパティの値。

戻り値

完了時に MediaFrameSourceSetPropertyStatus を 返す非同期操作。

属性

注釈

メディア フレーム ソース プロパティの値を取得するには、 GetPropertyAsync を使用します

一般的なデバイス プロパティは、 VideoDeviceController クラスのプロパティとして公開されます。 追加のプロパティは、 KSPROPERTYSETID_ExtendedCameraControl プロパティ セットで定義されます。 レガシ プロパティは、 PROPSETID_VIDCAP_CAMERACONTROL プロパティ セットで定義されます。 ID でカメラのプロパティにアクセスする例については、 拡張コントロールとメタデータのサンプルを参照してください。

適用対象