StorageLibrary.GetLibraryForUserAsync(User, KnownLibraryId) StorageLibrary.GetLibraryForUserAsync(User, KnownLibraryId) StorageLibrary.GetLibraryForUserAsync(User, KnownLibraryId) StorageLibrary.GetLibraryForUserAsync(User, KnownLibraryId) StorageLibrary.GetLibraryForUserAsync(User, KnownLibraryId) Method

Definition

Gets the specified library for a User.

public : static IAsyncOperation<StorageLibrary> GetLibraryForUserAsync(User user, KnownLibraryId libraryId)
static IAsyncOperation<StorageLibrary> GetLibraryForUserAsync(User user, KnownLibraryId libraryId) const;
public static IAsyncOperation<StorageLibrary> GetLibraryForUserAsync(User user, KnownLibraryId libraryId)
Public Shared Function GetLibraryForUserAsync(user As User, libraryId As KnownLibraryId) As IAsyncOperation(Of StorageLibrary)
Windows.Storage.StorageLibrary.getLibraryForUserAsync(user, libraryId).done( /* Your success and error handlers */ );

Parameters

user
User User User

The User for which the library is retrieved.

libraryId
KnownLibraryId KnownLibraryId KnownLibraryId

A KnownLibraryId value that identifies the library to retrieve, like Music or Videos.

Returns

When this method completes successfully, it returns the library (type StorageLibrary ).

Additional features and requirements

Device family
Windows 10 (introduced v10.0.10586.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v2)

See also