Folders. Request Access For User Async(User, KnownFolderId) Method
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 the user and folderId.
public: static IAsyncOperation<KnownFoldersAccessStatus> ^ RequestAccessForUserAsync(User ^ user, KnownFolderId folderId);
/// [Windows.Foundation.Metadata.RemoteAsync] static IAsyncOperation<KnownFoldersAccessStatus> RequestAccessForUserAsync(User const& user, KnownFolderId const& folderId);
[Windows.Foundation.Metadata.RemoteAsync] public static IAsyncOperation<KnownFoldersAccessStatus> RequestAccessForUserAsync(User user, KnownFolderId folderId);
function requestAccessForUserAsync(user, folderId)
Public Shared Function RequestAccessForUserAsync (user As User, folderId As KnownFolderId) As IAsyncOperation(Of KnownFoldersAccessStatus)
The user property.
The Id of the folder to be returned.
Returns a KnownFolderAccessStatus enum.
Windows 10, version 2004 (introduced in 10.0.19041.0)
Windows.Foundation.UniversalApiContract (introduced in v10.0)
This method is Multi-User Aware (MUA).
Providing a null User will result in an Invalid argument exception as MUA apps should always provide a valid non-null User.