Class FolderCommand
Definition
- Namespace:
- Tizen.Content.Media
Content
- Assembly:
- Tizen.Content.MediaContent.dll
Provides commands to manage folders and query related media items in the database.
public class FolderCommand : MediaCommand
- Inheritance
Constructors
View SourceFolderCommand(MediaDatabase)
Initializes a new instance of the Folder
Declaration
public FolderCommand(MediaDatabase database)
Parameters
Type | Name | Description |
---|---|---|
Media |
database | The Media |
Exceptions
Type | Condition |
---|---|
System. |
|
System. |
|
Methods
View SourceCount()
Retrieves the number of folders.
Declaration
public int Count()
Returns
Type | Description |
---|---|
int | The number of folders. |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
Count(CountArguments)
Retrieves the number of folders with the 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 folders. |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
CountMedia(string, CountArguments)
Retrieves the number of media information under the folder with the Count
Declaration
public int CountMedia(string folderId, CountArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
string | folderId | The ID of the folder to count media in the folder. |
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 |
Media |
An error occurred while executing the command. |
System. |
|
System. |
|
CountMedia(string)
Retrieves the number of media information under the folder.
Declaration
public int CountMedia(string folderId)
Parameters
Type | Name | Description |
---|---|---|
string | folderId | The ID of the folder to count media in the folder. |
Returns
Type | Description |
---|---|
int | The number of media information. |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
System. |
|
System. |
|
Select()
Retrieves the folders.
Declaration
public MediaDataReader<Folder> Select()
Returns
Type | Description |
---|---|
Media |
The Media |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
Select(string)
Retrieves the folder.
Declaration
public Folder Select(string folderId)
Parameters
Type | Name | Description |
---|---|---|
string | folderId | The folder ID to query with. |
Returns
Type | Description |
---|---|
Folder | The Folder instance if the matched record was found in the database, otherwise null. |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
System. |
|
System. |
|
Select(SelectArguments)
Retrieves the folders with the Select
Declaration
public MediaDataReader<Folder> Select(SelectArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
Select |
arguments | 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. |
SelectMedia(string, SelectArguments)
Retrieves the media information under the folder with the Select
Declaration
public MediaDataReader<MediaInfo> SelectMedia(string folderId, SelectArguments filter)
Parameters
Type | Name | Description |
---|---|---|
string | folderId | The ID of the folder to select media in the folder. |
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. |
System. |
|
System. |
|
SelectMedia(string)
Retrieves the media information under the folder.
Declaration
public MediaDataReader<MediaInfo> SelectMedia(string folderId)
Parameters
Type | Name | Description |
---|---|---|
string | folderId | The ID of the folder to select media in the folder. |
Returns
Type | Description |
---|---|
Media |
The Media |
Exceptions
Type | Condition |
---|---|
System. |
The Media |
System. |
The Media |
Media |
An error occurred while executing the command. |
System. |
|
System. |
|