KnownFolders.GetFolderForUserAsync(User, KnownFolderId) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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)
參數
- folderId
- KnownFolderId
要傳回之資料夾的識別碼。
傳回
當這個方法完成時,它會傳回要求的 StorageFolder 物件。
- 屬性
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10586.0 引進)
|
API contract |
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)
|