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 引進)
|