Class FaceInfoCommand

Definition

Namespace:
Tizen.Content.MediaContent
Assembly:
Tizen.Content.MediaContent.dll

Provides commands to manage face information in the database.

C#
Copy
public class FaceInfoCommand : MediaCommand
Inheritance
object
FaceInfoCommand

Constructors

View Source

FaceInfoCommand(MediaDatabase)

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

Declaration
C#
Copy
public FaceInfoCommand(MediaDatabase database)
Parameters
Type Name Description
MediaDatabase database

The MediaDatabase that the commands run on.

Exceptions
Type Condition
System.ArgumentNullException

database is null.

System.ObjectDisposedException

database has already been disposed of.

See Also

Methods

View Source

Delete(string)

Deletes the face information from the database.

Declaration
C#
Copy
public bool Delete(string faceInfoId)
Parameters
Type Name Description
string faceInfoId

The face information ID to delete.

Returns
Type Description
bool

true if the matched record was found and deleted, otherwise false.

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

faceInfoId is null.

System.ArgumentException

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

System.UnauthorizedAccessException

The caller has no required privilege.

See Also
View Source

Select()

Retrieves the face information.

Declaration
C#
Copy
public MediaDataReader<FaceInfo> Select()
Returns
Type Description
MediaDataReader<FaceInfo>

The MediaDataReader<TRecord> containing the results.

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 Source

Select(SelectArguments)

Retrieves the face information with the SelectArguments.

Declaration
C#
Copy
public MediaDataReader<FaceInfo> Select(SelectArguments filter)
Parameters
Type Name Description
SelectArguments filter

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

Returns
Type Description
MediaDataReader<FaceInfo>

The MediaDataReader<TRecord> containing the results.

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 Source

UpdateTag(string, string)

Updates a tag with the specified tag.

Declaration
C#
Copy
public bool UpdateTag(string faceInfoId, string tag)
Parameters
Type Name Description
string faceInfoId

The face information ID to update.

string tag

The tag value for update.

Returns
Type Description
bool

true if the matched record was found and updated, otherwise false.

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

faceInfoId is null.

System.ArgumentException

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

System.UnauthorizedAccessException

The caller has no required privilege.

See Also

See Also