Class AlbumCommand
Definition
- Namespace:
- Tizen.Content.MediaContent
- Assembly:
- Tizen.Content.MediaContent.dll
- API Level:
- 4
Provides commands to manage albums in the database.
C#Copypublic class AlbumCommand : MediaCommand
- Inheritance
Constructors
AlbumCommand(MediaDatabase)
Initializes a new instance of the AlbumCommand class with the specified MediaDatabase.
Declaration
C#Copypublic AlbumCommand(MediaDatabase database)
Parameters
Type | Name | Description |
---|---|---|
MediaDatabase | database | The MediaDatabase that the commands run on. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ObjectDisposedException |
|
API Level: 4
Methods
Declaration
C#Copypublic int Count()
Returns
Type | Description |
---|---|
System.Int32 | The number of albums. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
MediaDatabaseException | An error occurred while executing the command. |
API Level: 4
Declaration
C#Copypublic int Count(CountArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
CountArguments | arguments | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
System.Int32 | The number of albums. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
MediaDatabaseException | An error occurred while executing the command. |
API Level: 4
Declaration
C#Copypublic int CountMember(int albumId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | albumId | The ID of the album to query with. |
Returns
Type | Description |
---|---|
System.Int32 | The number of media information. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
System.ArgumentOutOfRangeException |
|
MediaDatabaseException | An error occurred while executing the command. |
API Level: 4
CountMember(Int32, CountArguments)
Retrieves the number of media information that belongs to the album with CountArguments.
Declaration
C#Copypublic int CountMember(int albumId, CountArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | 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 |
---|---|
System.Int32 | The number of media information. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
System.ArgumentOutOfRangeException |
|
MediaDatabaseException | An error occurred while executing the command. |
API Level: 4
Declaration
C#Copypublic MediaDataReader<Album> Select()
Returns
Type | Description |
---|---|
MediaDataReader<Album> | The MediaDataReader<TRecord> containing the results. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
MediaDatabaseException | An error occurred while executing the command. |
API Level: 4
Declaration
C#Copypublic Album Select(int albumId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | albumId | The ID of the album to query with. |
Returns
Type | Description |
---|---|
Album | The Album if |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
System.ArgumentOutOfRangeException |
|
MediaDatabaseException | An error occurred while executing the command. |
API Level: 4
Declaration
C#Copypublic 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. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
MediaDatabaseException | An error occurred while executing the command. |
API Level: 4
Declaration
C#Copypublic MediaDataReader<MediaInfo> SelectMember(int albumId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | 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. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
MediaDatabaseException | An error occurred while executing the command. |
API Level: 4
SelectMember(Int32, SelectArguments)
Retrieves the media information of the album with SelectArguments.
Declaration
C#Copypublic MediaDataReader<MediaInfo> SelectMember(int albumId, SelectArguments filter)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | 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. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
MediaDatabaseException | An error occurred while executing the command. |