共用方式為


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) 的程式庫。

屬性

適用於

另請參閱