Class StorageCommand
Definition
- Namespace:
- Tizen.Content.MediaContent
- Assembly:
- Tizen.Content.MediaContent.dll
Provides the commands to manage external storages in the database.
public class StorageCommand : MediaCommand
- Inheritance
Remarks
The internal storage is not managed.
Constructors
View SourceStorageCommand(MediaDatabase)
Initializes a new instance of the StorageCommand class with the specified MediaDatabase.
Declaration
public StorageCommand(MediaDatabase database)
Parameters
Type | Name | Description |
---|---|---|
MediaDatabase | database | The MediaDatabase that the commands run on. |
Remarks
The internal storage is not managed.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
System.ObjectDisposedException |
|
See Also
Methods
View SourceCount()
Retrieves the number of storages.
Declaration
public int Count()
Returns
Type | Description |
---|---|
int | The number of storages. |
Remarks
The internal storage is not managed.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
System.ObjectDisposedException | The MediaDatabase has already been disposed of. |
MediaDatabaseException | An error occurred while executing the command. |
See Also
View SourceCount(CountArguments)
Retrieves the number of storages with the 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 storages filtered. |
Remarks
The internal storage is not managed.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
System.ObjectDisposedException | The MediaDatabase has already been disposed of. |
MediaDatabaseException | An error occurred while executing the command. |
See Also
View SourceCountMedia(string, CountArguments)
Retrieves the number of media information of the storage with the CountArguments.
Declaration
public int CountMedia(string storageId, CountArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
string | storageId | The storage ID to query with. |
CountArguments | arguments | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
int | The number of media information. |
Remarks
The internal storage is not managed.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
System.ObjectDisposedException | The MediaDatabase has already been disposed of. |
MediaDatabaseException | An error occurred while executing the command. |
System.ArgumentNullException |
|
System.ArgumentException |
|
See Also
View SourceCountMedia(string)
Retrieves the number of media information of the storage.
Declaration
public int CountMedia(string storageId)
Parameters
Type | Name | Description |
---|---|---|
string | storageId | The storage ID. |
Returns
Type | Description |
---|---|
int | The number of media information. |
Remarks
The internal storage is not managed.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
System.ObjectDisposedException | The MediaDatabase has already been disposed of. |
MediaDatabaseException | An error occurred while executing the command. |
System.ArgumentNullException |
|
System.ArgumentException |
|
See Also
View SourceSelect()
Retrieves all the storages.
Declaration
public MediaDataReader<Storage> Select()
Returns
Type | Description |
---|---|
MediaDataReader<Storage> | The MediaDataReader<TRecord> containing the results. |
Remarks
The internal storage is not managed.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
System.ObjectDisposedException | The MediaDatabase has already been disposed of. |
MediaDatabaseException | An error occurred while executing the command. |
See Also
View SourceSelect(string)
Retrieves the storage with the specified ID.
Declaration
public Storage Select(string storageId)
Parameters
Type | Name | Description |
---|---|---|
string | storageId | The storage ID to select. |
Returns
Type | Description |
---|---|
Storage | The Storage instance if the matched record was found in the database, otherwise null. |
Remarks
The internal storage is not managed.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
System.ObjectDisposedException | The MediaDatabase has already been disposed of. |
MediaDatabaseException | An error occurred while executing the command. |
System.ArgumentNullException |
|
System.ArgumentException |
|
See Also
View SourceSelect(SelectArguments)
Retrieves the storages with the SelectArguments.
Declaration
public MediaDataReader<Storage> Select(SelectArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
SelectArguments | arguments | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
MediaDataReader<Storage> | The MediaDataReader<TRecord> containing the results. |
Remarks
The internal storage is not managed.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
System.ObjectDisposedException | The MediaDatabase has already been disposed of. |
MediaDatabaseException | An error occurred while executing the command. |
See Also
View SourceSelectMedia(string, SelectArguments)
Retrieves the media information of the storage with the SelectArguments.
Declaration
public MediaDataReader<MediaInfo> SelectMedia(string storageId, SelectArguments filter)
Parameters
Type | Name | Description |
---|---|---|
string | storageId | The storage ID. |
SelectArguments | filter | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
MediaDataReader<MediaInfo> | The MediaDataReader<TRecord> containing the results. |
Remarks
The internal storage is not managed.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
System.ObjectDisposedException | The MediaDatabase has already been disposed of. |
MediaDatabaseException | An error occurred while executing the command. |
System.ArgumentNullException |
|
System.ArgumentException |
|
See Also
View SourceSelectMedia(string)
Retrieves the media information of the storage.
Declaration
public MediaDataReader<MediaInfo> SelectMedia(string storageId)
Parameters
Type | Name | Description |
---|---|---|
string | storageId | The storage ID. |
Returns
Type | Description |
---|---|
MediaDataReader<MediaInfo> | The MediaDataReader<TRecord> containing the results. |
Remarks
The internal storage is not managed.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | The MediaDatabase is disconnected. |
System.ObjectDisposedException | The MediaDatabase has already been disposed of. |
MediaDatabaseException | An error occurred while executing the command. |
System.ArgumentNullException |
|
System.ArgumentException |
|