StorageLibrary.GetLibraryAsync(KnownLibraryId) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定的库。
public:
static IAsyncOperation<StorageLibrary ^> ^ GetLibraryAsync(KnownLibraryId libraryId);
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<StorageLibrary> GetLibraryAsync(KnownLibraryId const& libraryId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<StorageLibrary> GetLibraryAsync(KnownLibraryId libraryId);
function getLibraryAsync(libraryId)
Public Shared Function GetLibraryAsync (libraryId As KnownLibraryId) As IAsyncOperation(Of StorageLibrary)
参数
- libraryId
- KnownLibraryId
一个 KnownLibraryId 值,该值标识要检索的库,例如“音乐”或“视频”。
返回
此方法成功完成后,它将返回库 (类型 StorageLibrary) 。
- 属性