Class StorageCommand

Definition

Namespace:
Tizen.Content.MediaContent
Assembly:
Tizen.Content.MediaContent.dll
API Level:
4

Provides the commands to manage external storages in the database.

C#
Copy
[Obsolete("Please do not use! this will be deprecated in level 6")] public class StorageCommand : MediaCommand
Inheritance
System.Object
StorageCommand
Remarks

The internal storage is not managed.

Constructors

View Source

StorageCommand(MediaDatabase)

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

Declaration
C#
Copy
[Obsolete("Please do not use! this will be deprecated in level 6")] public StorageCommand(MediaDatabase database)
Parameters
Type Name Description
MediaDatabase database

The MediaDatabase that the commands run on.

Exceptions
Type Condition
System.ArgumentNullException

database is null.

ObjectDisposedException

database has already been disposed.

API Level: 4

Methods

View Source

Count()

Retrieves the number of storages.

Declaration
C#
Copy
[Obsolete("Please do not use! this will be deprecated in level 6")] public int Count()
Returns
Type Description
Int32

The number of storages.

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
View Source

Count(CountArguments)

Retrieves the number of storages with the CountArguments.

Declaration
C#
Copy
[Obsolete("Please do not use! this will be deprecated in level 6")] 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
Int32

The number of storages filtered.

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
View Source

CountMedia(String)

Retrieves the number of media information of the storage.

Declaration
C#
Copy
[Obsolete("Please do not use! this will be deprecated in level 6")] public int CountMedia(string storageId)
Parameters
Type Name Description
System.String storageId

The storage ID.

Returns
Type Description
Int32

The number of media information.

Exceptions
Type Condition
System.InvalidOperationException

The MediaDatabase is disconnected.

ObjectDisposedException

The MediaDatabase has already been disposed.

MediaDatabaseException

An error occurred while executing the command.

System.ArgumentNullException

storageId is null.

System.ArgumentException

storageId is a zero-length string, contains only white space.

API Level: 4
View Source

CountMedia(String, CountArguments)

Retrieves the number of media information of the storage with the CountArguments.

Declaration
C#
Copy
[Obsolete("Please do not use! this will be deprecated in level 6")] public int CountMedia(string storageId, CountArguments arguments)
Parameters
Type Name Description
System.String storageId

The storage ID to query with.

CountArguments arguments

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

Returns
Type Description
Int32

The number of media information.

Exceptions
Type Condition
System.InvalidOperationException

The MediaDatabase is disconnected.

ObjectDisposedException

The MediaDatabase has already been disposed.

MediaDatabaseException

An error occurred while executing the command.

System.ArgumentNullException

storageId is null.

System.ArgumentException

storageId is a zero-length string, contains only white space.

API Level: 4
View Source

Select()

Retrieves all the storages.

Declaration
C#
Copy
[Obsolete("Please do not use! this will be deprecated in level 6")] public MediaDataReader<Storage> Select()
Returns
Type Description
MediaDataReader<Storage>

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
View Source

Select(String)

Retrieves the storage with the specified ID.

Declaration
C#
Copy
[Obsolete("Please do not use! this will be deprecated in level 6")] public Storage Select(string storageId)
Parameters
Type Name Description
System.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.

Exceptions
Type Condition
System.InvalidOperationException

The MediaDatabase is disconnected.

ObjectDisposedException

The MediaDatabase has already been disposed.

MediaDatabaseException

An error occurred while executing the command.

System.ArgumentNullException

storageId is null.

System.ArgumentException

storageId is a zero-length string, contains only white space.

API Level: 4
View Source

Select(SelectArguments)

Retrieves the storages with the SelectArguments.

Declaration
C#
Copy
[Obsolete("Please do not use! this will be deprecated in level 6")] 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.

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
View Source

SelectMedia(String)

Retrieves the media information of the storage.

Declaration
C#
Copy
[Obsolete("Please do not use! this will be deprecated in level 6")] public MediaDataReader<MediaInfo> SelectMedia(string storageId)
Parameters
Type Name Description
System.String storageId

The storage ID.

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.

System.ArgumentNullException

storageId is null.

System.ArgumentException

storageId is a zero-length string, contains only white space.

API Level: 4
View Source

SelectMedia(String, SelectArguments)

Retrieves the media information of the storage with the SelectArguments.

Declaration
C#
Copy
[Obsolete("Please do not use! this will be deprecated in level 6")] public MediaDataReader<MediaInfo> SelectMedia(string storageId, SelectArguments filter)
Parameters
Type Name Description
System.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.

Exceptions
Type Condition
System.InvalidOperationException

The MediaDatabase is disconnected.

ObjectDisposedException

The MediaDatabase has already been disposed.

MediaDatabaseException

An error occurred while executing the command.

System.ArgumentNullException

storageId is null.

System.ArgumentException

storageId is a zero-length string, contains only white space.

API Level: 4

See Also