AppCapture.SetAllowedAsync(Boolean) Method

Definition

Sets a value that specifies whether the app capture is currently allowed for the calling app.

public:
 static IAsyncAction ^ SetAllowedAsync(bool allowed);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction SetAllowedAsync(bool const& allowed);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction SetAllowedAsync(bool allowed);
function setAllowedAsync(allowed)
Public Shared Function SetAllowedAsync (allowed As Boolean) As IAsyncAction

Parameters

allowed
Boolean

bool

True if app capture is allowed; otherwise, false.

Returns

An asynchronous action.

Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

The default value for this property is true, meaning that app capture is allowed. When an app sets this value, the set value does not persist across instances of the app.

Applies to