FileOpenPicker.CreateForUser(User) Method

Definition

Creates a FileOpenPicker that is scoped to the personal directory of the specified user. Use this method for multi-user applications.

public:
 static FileOpenPicker ^ CreateForUser(User ^ user);
 static FileOpenPicker CreateForUser(User const& user);
public static FileOpenPicker CreateForUser(User user);
function createForUser(user)
Public Shared Function CreateForUser (user As User) As FileOpenPicker

Parameters

user
User

The user for which to create the FileOpenPicker.

Returns

The new FileOpenPicker that was created.

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Applies to

See also