共用方式為


KnownFolders.GetFolderForUserAsync(User, KnownFolderId) 方法

定義

靜態方法,會傳回 User的指定已知資料夾。

public:
 static IAsyncOperation<StorageFolder ^> ^ GetFolderForUserAsync(User ^ user, KnownFolderId folderId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<StorageFolder> GetFolderForUserAsync(User const& user, KnownFolderId const& folderId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<StorageFolder> GetFolderForUserAsync(User user, KnownFolderId folderId);
function getFolderForUserAsync(user, folderId)
Public Shared Function GetFolderForUserAsync (user As User, folderId As KnownFolderId) As IAsyncOperation(Of StorageFolder)

參數

user
User

回資料夾的使用者。

folderId
KnownFolderId

要傳回之資料夾的識別碼。

傳回

當這個方法完成時,它會傳回要求的 StorageFolder 物件。

屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10586.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)

適用於

另請參閱