GraphicsCaptureAccess.RequestAccessAsync(GraphicsCaptureAccessKind) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.