Share via


MediaFrameSourceController.GetPropertyAsync(String) Method

Definition

Asynchronously gets an object that contains the value of a MediaFrameSource property, if the property value is successfully retrieved, and describes the result status of the get operation.

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)

Parameters

propertyId
String

Platform::String

winrt::hstring

The identifier of the media frame source property to be retrieved.

Returns

An asynchronous operation that returns a MediaFrameSourceGetPropertyResult upon completion.

Attributes

Remarks

To set the value of a media frame source property, use SetPropertyAsync.

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