共用方式為


StorageLibrary.GetLibraryForUserAsync(User, KnownLibraryId) 方法

定義

取得 使用者的指定程式庫。

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)

參數

user
User

取程式庫的使用者。

libraryId
KnownLibraryId

KnownLibraryId值,可識別要擷取的程式庫,例如音樂或影片。

傳回

當此方法成功完成時,它會傳回 (類型 StorageLibrary) 的程式庫。

屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10586.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)

適用於

另請參閱