Udostępnij za pośrednictwem


VideoDeviceController.GetDeviceProperty(String) Method

Definition

Gets the value of the property with the specified ID from the capture device driver. You can use this method to query properties that are specific to a particular camera.

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

Parameters

propertyId
String

Platform::String

winrt::hstring

The identifier of the property for which the value is retrieved.

Returns

Object

Platform::Object

IInspectable

The property value.

Remarks

Common device properties are exposed as properties of the VideoDeviceController class. Additional properties are defined in the KSPROPERTYSETID_ExtendedCameraControl property set. Legacy properties are defined in the PROPSETID_VIDCAP_CAMERACONTROL property set. For an example of accessing camera properties by ID, see the Extended Control and Metadata sample.

Applies to

See also