Partager via


MediaFrameSourceController.SetPropertyAsync(String, Object) Method

Definition

Asynchronously sets the value of a MediaFrameSource property and returns a MediaFrameSourceSetPropertyStatus object describing the result status of the set operation.

public:
 virtual IAsyncOperation<MediaFrameSourceSetPropertyStatus> ^ SetPropertyAsync(Platform::String ^ propertyId, Platform::Object ^ propertyValue) = SetPropertyAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<MediaFrameSourceSetPropertyStatus> SetPropertyAsync(winrt::hstring const& propertyId, IInspectable const& propertyValue);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<MediaFrameSourceSetPropertyStatus> SetPropertyAsync(string propertyId, object propertyValue);
function setPropertyAsync(propertyId, propertyValue)
Public Function SetPropertyAsync (propertyId As String, propertyValue As Object) As IAsyncOperation(Of MediaFrameSourceSetPropertyStatus)

Parameters

propertyId
String

Platform::String

winrt::hstring

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

propertyValue
Object

Platform::Object

IInspectable

The value of the media frame source property to be set.

Returns

An asynchronous operation that returns a MediaFrameSourceSetPropertyStatus upon completion.

Attributes

Remarks

To get the value of a media frame source property, use GetPropertyAsync.

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