StorageLibrary.GetLibraryAsync(KnownLibraryId) 方法

定义

获取指定的库。

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) 。

属性

适用于

另请参阅