StorageLibrary.GetLibraryForUserAsync(User, KnownLibraryId) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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)
参数
- libraryId
- KnownLibraryId
一个 KnownLibraryId 值,该值标识要检索的库,如音乐或视频。
返回
此方法成功完成后,它将返回类型为 StorageLibrary) (库。
- 属性
Windows 要求
设备系列 |
Windows 10 (在 10.0.10586.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v2.0 中引入)
|