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