Class AlbumCommand

    Definition

    Namespace:
    Tizen.Content.MediaContent
    Assembly:
    Tizen.Content.MediaContent.dll

    Provides commands to manage albums in the database.

    public class AlbumCommand : MediaCommand
    Inheritance
    object
    MediaCommand
    AlbumCommand

    Constructors

    View Source

    AlbumCommand(MediaDatabase)

    Initializes a new instance of the AlbumCommand class with the specified MediaDatabase.

    Declaration
    public AlbumCommand(MediaDatabase database)
    Parameters
    Type Name Description
    MediaDatabase database

    The MediaDatabase that the commands run on.

    Exceptions
    Type Condition
    System.ArgumentNullException

    database is null.

    System.ObjectDisposedException

    database has already been disposed.

    See Also
    Album

    Methods

    View Source

    Count()

    Retrieves the number of albums.

    Declaration
    public int Count()
    Returns
    Type Description
    int

    The number of albums.

    Exceptions
    Type Condition
    System.InvalidOperationException

    The MediaDatabase is disconnected.

    System.ObjectDisposedException

    The MediaDatabase has already been disposed.

    MediaDatabaseException

    An error occurred while executing the command.

    See Also
    Album
    View Source

    Count(CountArguments)

    Retrieves the number of albums with CountArguments.

    Declaration
    public int Count(CountArguments arguments)
    Parameters
    Type Name Description
    CountArguments arguments

    The criteria to use to filter. This value can be null.

    Returns
    Type Description
    int

    The number of albums.

    Exceptions
    Type Condition
    System.InvalidOperationException

    The MediaDatabase is disconnected.

    System.ObjectDisposedException

    The MediaDatabase has already been disposed.

    MediaDatabaseException

    An error occurred while executing the command.

    See Also
    Album
    View Source

    CountMember(int, CountArguments)

    Retrieves the number of media information that belongs to the album with CountArguments.

    Declaration
    public int CountMember(int albumId, CountArguments arguments)
    Parameters
    Type Name Description
    int albumId

    The ID of the album to count media.

    CountArguments arguments

    The criteria to use to filter. This value can be null.

    Returns
    Type Description
    int

    The number of media information.

    Exceptions
    Type Condition
    System.InvalidOperationException

    The MediaDatabase is disconnected.

    System.ObjectDisposedException

    The MediaDatabase has already been disposed.

    System.ArgumentOutOfRangeException

    albumId is equal to or less than zero.

    MediaDatabaseException

    An error occurred while executing the command.

    See Also
    Album
    View Source

    CountMember(int)

    Retrieves the number of media information that belongs to the album.

    Declaration
    public int CountMember(int albumId)
    Parameters
    Type Name Description
    int albumId

    The ID of the album to query with.

    Returns
    Type Description
    int

    The number of media information.

    Exceptions
    Type Condition
    System.InvalidOperationException

    The MediaDatabase is disconnected.

    System.ObjectDisposedException

    The MediaDatabase has already been disposed.

    System.ArgumentOutOfRangeException

    albumId is equal to or less than zero.

    MediaDatabaseException

    An error occurred while executing the command.

    See Also
    Album
    View Source

    Select()

    Retrieves all the albums.

    Declaration
    public MediaDataReader<Album> Select()
    Returns
    Type Description
    MediaDataReader<Album>

    The MediaDataReader<TRecord> containing the results.

    Exceptions
    Type Condition
    System.InvalidOperationException

    The MediaDatabase is disconnected.

    System.ObjectDisposedException

    The MediaDatabase has already been disposed.

    MediaDatabaseException

    An error occurred while executing the command.

    See Also
    Album
    View Source

    Select(int)

    Retrieves an album with the album ID.

    Declaration
    public Album Select(int albumId)
    Parameters
    Type Name Description
    int albumId

    The ID of the album to query with.

    Returns
    Type Description
    Album

    The Album if albumId exists, otherwise null.

    Exceptions
    Type Condition
    System.InvalidOperationException

    The MediaDatabase is disconnected.

    System.ObjectDisposedException

    The MediaDatabase has already been disposed.

    System.ArgumentOutOfRangeException

    albumId is equal to or less than zero.

    MediaDatabaseException

    An error occurred while executing the command.

    See Also
    Album
    View Source

    Select(SelectArguments)

    Retrieves the albums with SelectArguments.

    Declaration
    public MediaDataReader<Album> Select(SelectArguments filter)
    Parameters
    Type Name Description
    SelectArguments filter

    The criteria to use to filter. This value can be null.

    Returns
    Type Description
    MediaDataReader<Album>

    The MediaDataReader<TRecord> containing the results.

    Exceptions
    Type Condition
    System.InvalidOperationException

    The MediaDatabase is disconnected.

    System.ObjectDisposedException

    The MediaDatabase has already been disposed.

    MediaDatabaseException

    An error occurred while executing the command.

    See Also
    Album
    View Source

    SelectMember(int, SelectArguments)

    Retrieves the media information of the album with SelectArguments.

    Declaration
    public MediaDataReader<MediaInfo> SelectMember(int albumId, SelectArguments filter)
    Parameters
    Type Name Description
    int albumId

    The ID of the album to query with.

    SelectArguments filter

    The criteria to use to filter. This value can be null.

    Returns
    Type Description
    MediaDataReader<MediaInfo>

    The MediaDataReader<TRecord> containing the results.

    Exceptions
    Type Condition
    System.InvalidOperationException

    The MediaDatabase is disconnected.

    System.ObjectDisposedException

    The MediaDatabase has already been disposed.

    MediaDatabaseException

    An error occurred while executing the command.

    See Also
    Album
    View Source

    SelectMember(int)

    Retrieves the media information of the album.

    Declaration
    public MediaDataReader<MediaInfo> SelectMember(int albumId)
    Parameters
    Type Name Description
    int albumId

    The ID of the album to select media.

    Returns
    Type Description
    MediaDataReader<MediaInfo>

    The MediaDataReader<TRecord> containing the results.

    Exceptions
    Type Condition
    System.InvalidOperationException

    The MediaDatabase is disconnected.

    System.ObjectDisposedException

    The MediaDatabase has already been disposed.

    MediaDatabaseException

    An error occurred while executing the command.

    See Also
    Album

    See Also

    Album
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX