Bagikan melalui


MediaFrameSourceController.GetPropertyAsync(String) Metode

Definisi

Secara asinkron mendapatkan objek yang berisi nilai properti MediaFrameSource , jika nilai properti berhasil diambil, dan menjelaskan status hasil operasi get.

public:
 virtual IAsyncOperation<MediaFrameSourceGetPropertyResult ^> ^ GetPropertyAsync(Platform::String ^ propertyId) = GetPropertyAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<MediaFrameSourceGetPropertyResult> GetPropertyAsync(winrt::hstring const& propertyId);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<MediaFrameSourceGetPropertyResult> GetPropertyAsync(string propertyId);
function getPropertyAsync(propertyId)
Public Function GetPropertyAsync (propertyId As String) As IAsyncOperation(Of MediaFrameSourceGetPropertyResult)

Parameter

propertyId
String

Platform::String

winrt::hstring

Pengidentifikasi properti sumber bingkai media yang akan diambil.

Mengembalikan

Operasi asinkron yang mengembalikan MediaFrameSourceGetPropertyResult setelah selesai.

Atribut

Keterangan

Untuk mengatur nilai properti sumber bingkai media, gunakan SetPropertyAsync.

Properti perangkat umum diekspos sebagai properti kelas VideoDeviceController . Properti tambahan ditentukan dalam kumpulan properti KSPROPERTYSETID_ExtendedCameraControl . Properti warisan ditentukan dalam kumpulan properti PROPSETID_VIDCAP_CAMERACONTROL . Untuk contoh mengakses properti kamera menurut ID, lihat sampel Extended Control dan Metadata.

Berlaku untuk