Bagikan melalui


VideoDeviceController.SetDeviceProperty(String, Object) Metode

Definisi

Mengatur nilai properti dengan ID yang ditentukan pada driver perangkat tangkap. Anda dapat menggunakan metode ini untuk mengatur properti yang khusus untuk kamera tertentu.

public:
 virtual void SetDeviceProperty(Platform::String ^ propertyId, Platform::Object ^ propertyValue) = SetDeviceProperty;
void SetDeviceProperty(winrt::hstring const& propertyId, IInspectable const& propertyValue);
public void SetDeviceProperty(string propertyId, object propertyValue);
function setDeviceProperty(propertyId, propertyValue)
Public Sub SetDeviceProperty (propertyId As String, propertyValue As Object)

Parameter

propertyId
String

Platform::String

winrt::hstring

Pengidentifikasi properti yang nilainya ditetapkan.

propertyValue
Object

Platform::Object

IInspectable

Nilai baru properti.

Keterangan

ID properti dan data yang diharapkan ditentukan oleh produsen perangkat keras.

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