Share via


GraphicsCaptureAccess.RequestAccessAsync(GraphicsCaptureAccessKind) Method

Definition

Requests access for graphics capture features that require user consent.

public:
 static IAsyncOperation<AppCapabilityAccessStatus> ^ RequestAccessAsync(GraphicsCaptureAccessKind request);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<AppCapabilityAccessStatus> RequestAccessAsync(GraphicsCaptureAccessKind const& request);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<AppCapabilityAccessStatus> RequestAccessAsync(GraphicsCaptureAccessKind request);
function requestAccessAsync(request)
Public Shared Function RequestAccessAsync (request As GraphicsCaptureAccessKind) As IAsyncOperation(Of AppCapabilityAccessStatus)

Parameters

request
GraphicsCaptureAccessKind

A member of the GraphicsCaptureAccessKind enumeration specifying the type of access being requested.

Returns

An asynchronous operation that returns an AppCapabilityAccessStatus upon completion.

Attributes

Remarks

To call RequestAccessAsync with the value GraphicsCaptureAccessKind.Borderless, you must declare the graphicsCaptureWithoutBorder capability in your app's package manifest. For more information, see App capability declarations.

Applies to