Bagikan melalui


VideoDeviceController.GetDeviceProperty(String) Metode

Definisi

Mendapatkan nilai properti dengan ID yang ditentukan dari driver perangkat tangkap. Anda dapat menggunakan metode ini untuk mengkueri properti yang khusus untuk kamera tertentu.

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

Parameter

propertyId
String

Platform::String

winrt::hstring

Pengidentifikasi properti tempat nilai diambil.

Mengembalikan

Object

Platform::Object

IInspectable

Nilai properti.

Keterangan

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

Lihat juga