StorageLibrary.GetLibraryForUserAsync(User, KnownLibraryId) 方法

定义

获取 用户的指定库。

public:
 static IAsyncOperation<StorageLibrary ^> ^ GetLibraryForUserAsync(User ^ user, KnownLibraryId libraryId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<StorageLibrary> GetLibraryForUserAsync(User const& user, KnownLibraryId const& libraryId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<StorageLibrary> GetLibraryForUserAsync(User user, KnownLibraryId libraryId);
function getLibraryForUserAsync(user, libraryId)
Public Shared Function GetLibraryForUserAsync (user As User, libraryId As KnownLibraryId) As IAsyncOperation(Of StorageLibrary)

参数

user
User

为其检索库的用户。

libraryId
KnownLibraryId

一个 KnownLibraryId 值,该值标识要检索的库,如音乐或视频。

返回

此方法成功完成后,它将返回类型为 StorageLibrary) (库。

属性

Windows 要求

设备系列
Windows 10 (在 10.0.10586.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v2.0 中引入)

适用于

另请参阅