Class AlbumCommand
Definition
- Namespace:
- Tizen.Content.Media
Content
- Assembly:
- Tizen.Content.MediaContent.dll
Provides commands to manage albums in the database.
public class AlbumCommand : MediaCommand
- Inheritance
Constructors
View SourceAlbumCommand(MediaDatabase)
Initializes a new instance of the Album
Declaration
public AlbumCommand(MediaDatabase database)
Parameters
Type | Name | Description |
---|---|---|
Media |
database | The Media |
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
|
See Also
Methods
View SourceCount()
Retrieves the number of albums.
Declaration
public int Count()
Returns
Type | Description |
---|---|
int | The number of albums. |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
See Also
View SourceCount(CountArguments)
Retrieves the number of albums with Count
Declaration
public int Count(CountArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
Count |
arguments | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
int | The number of albums. |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
See Also
View SourceCountMember(int, CountArguments)
Retrieves the number of media information that belongs to the album with Count
Declaration
public int CountMember(int albumId, CountArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
int | albumId | The ID of the album to count media. |
Count |
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. |
The Media |
System. |
The Media |
System. |
|
Media |
An error occurred while executing the command. |
See Also
View SourceCountMember(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. |
The Media |
System. |
The Media |
System. |
|
Media |
An error occurred while executing the command. |
See Also
View SourceSelect()
Retrieves all the albums.
Declaration
public MediaDataReader<Album> Select()
Returns
Type | Description |
---|---|
Media |
The Media |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
See Also
View SourceSelect(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
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
System. |
|
Media |
An error occurred while executing the command. |
See Also
View SourceSelect(SelectArguments)
Retrieves the albums with Select
Declaration
public MediaDataReader<Album> Select(SelectArguments filter)
Parameters
Type | Name | Description |
---|---|---|
Select |
filter | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
Media |
The Media |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
See Also
View SourceSelectMember(int, SelectArguments)
Retrieves the media information of the album with Select
Declaration
public MediaDataReader<MediaInfo> SelectMember(int albumId, SelectArguments filter)
Parameters
Type | Name | Description |
---|---|---|
int | albumId | The ID of the album to query with. |
Select |
filter | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
Media |
The Media |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
See Also
View SourceSelectMember(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 |
---|---|
Media |
The Media |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |