Class MediaInfoCommand
Definition
- Namespace:
- Tizen.Content.MediaContent
- Assembly:
- Tizen.Content.MediaContent.dll
- API Level:
- 4
Provides commands to manage the media information and query related items in the database.
C#Copypublic class MediaInfoCommand : MediaCommand
- Inheritance
Constructors
MediaInfoCommand(MediaDatabase)
Initializes a new instance of the FolderCommand class with the specified MediaDatabase.
Declaration
C#Copypublic MediaInfoCommand(MediaDatabase database)
Parameters
Type | Name | Description |
---|---|---|
MediaDatabase | database | The MediaDatabase that the commands run on. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
ObjectDisposedException |
|
API Level: 4
Methods
Declaration
C#Copypublic MediaInfo Add(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The file path to add. |
Returns
Type | Description |
---|---|
MediaInfo | The MediaInfo instance that contains the record information in the database. |
Remarks
If the media already exists in the database, it returns the existing information.
The ScanFile(String) or the ScanFolderAsync(String) can be used instead.
If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage.
If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage.
If http://tizen.org/feature/content.scanning.others feature is not supported and the specified file is other-type,
System.NotSupportedException will be thrown.
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 |
|
System.ArgumentException |
|
System.IO.FileNotFoundException |
|
UnauthorizedAccessException | The caller has no required privilege. |
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/content.writehttp://tizen.org/privilege/mediastoragehttp://tizen.org/privilege/externalstorage
Declaration
C#Copypublic Task AddAsync(IEnumerable<string> paths)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | paths | The paths of the media files to add. |
Returns
Type | Description |
---|---|
Task | A task that represents the asynchronous add operation. |
Remarks
The paths that already exist in the database will be ignored.
At most 300 items can be added at once.
If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage.
If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage.
If http://tizen.org/feature/content.scanning.others feature is not supported and the specified file is other-type,
System.NotSupportedException will be thrown.
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 |
|
System.ArgumentException |
|
System.IO.FileNotFoundException |
|
UnauthorizedAccessException | The caller has no required privilege. |
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/content.writehttp://tizen.org/privilege/mediastoragehttp://tizen.org/privilege/externalstorage
Declaration
C#Copypublic int CountBookmark(string mediaId)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to count the bookmarks added to the media. |
Returns
Type | Description |
---|---|
System.Int32 | The number of the bookmarks. |
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 |
|
System.ArgumentException |
|
API Level: 4
CountBookmark(String, CountArguments)
Retrieves the number of the bookmarks added to the media with the CountArguments.
Declaration
C#Copypublic int CountBookmark(string mediaId, CountArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to count the bookmarks added to the media. |
CountArguments | arguments | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
System.Int32 | The number of the bookmarks. |
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 |
|
System.ArgumentException |
|
API Level: 4
CountFaceInfo(String)
Retrieves the number of the face information added to or detected from the media.
Declaration
C#Copypublic int CountFaceInfo(string mediaId)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to count face information added to the media. |
Returns
Type | Description |
---|---|
System.Int32 | The number of the face 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 |
|
System.ArgumentException |
|
API Level: 4
CountFaceInfo(String, CountArguments)
Retrieves the number of the face information added to or detected from the media with filter.
Declaration
C#Copypublic int CountFaceInfo(string mediaId, CountArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to count the face information added to the media. |
CountArguments | arguments | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
System.Int32 | The number of the face 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 |
|
System.ArgumentException |
|
API Level: 4
CountGroupBy(MediaInfoColumnKey)
Retrieves the number of values grouped by the specified column with the SelectArguments.
Declaration
C#Copypublic int CountGroupBy(MediaInfoColumnKey columnKey)
Parameters
Type | Name | Description |
---|---|---|
MediaInfoColumnKey | columnKey | The column key. |
Returns
Type | Description |
---|---|
System.Int32 | The number of groups. |
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.ArgumentException |
|
API Level: 4
CountGroupBy(MediaInfoColumnKey, CountArguments)
Retrieves the number of values grouped by the specified column with the SelectArguments.
Declaration
C#Copypublic int CountGroupBy(MediaInfoColumnKey columnKey, CountArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
MediaInfoColumnKey | columnKey | The column key. |
CountArguments | arguments | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
System.Int32 | The number of groups. |
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.ArgumentException |
|
API Level: 4
Declaration
C#Copypublic int CountMedia()
Returns
Type | Description |
---|---|
System.Int32 | The number of the 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. |
API Level: 4
CountMedia(CountArguments)
Retrieves the number of the media information with the SelectArguments.
Declaration
C#Copypublic int CountMedia(CountArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
CountArguments | arguments | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
System.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. |
API Level: 4
Declaration
C#Copypublic int CountTag(string mediaId)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to count tags added to the media. |
Returns
Type | Description |
---|---|
System.Int32 | The number of tags. |
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 |
|
System.ArgumentException |
|
API Level: 4
CountTag(String, CountArguments)
Retrieves the number of tags that the media has with the CountArguments.
Declaration
C#Copypublic int CountTag(string mediaId, CountArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to count tags added to the media. |
CountArguments | arguments | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
System.Int32 | The number of tags. |
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 |
|
System.ArgumentException |
|
API Level: 4
CreateThumbnailAsync(String)
Creates the thumbnail image for the given media. If the thumbnail already exists for the given media, the existing path will be returned.
Declaration
C#Copypublic Task<string> CreateThumbnailAsync(string mediaId)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to create the thumbnail. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | A task that represents the asynchronous operation. The task result contains the thumbnail path. |
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 |
|
RecordNotFoundException |
|
System.ArgumentException |
|
System.IO.FileNotFoundException | The file of the media does not exists; moved or deleted. |
UnsupportedContentException | The thumbnail is not available for the given media. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/content.write
CreateThumbnailAsync(String, CancellationToken)
Creates the thumbnail image for the given media. If the thumbnail already exists for the given media, the existing path will be returned.
Declaration
C#Copypublic Task<string> CreateThumbnailAsync(string mediaId, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to create the thumbnail. |
CancellationToken | cancellationToken | The token to cancel the operation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | A task that represents the asynchronous operation. The task result contains the thumbnail path. |
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 |
|
RecordNotFoundException |
|
System.ArgumentException |
|
System.IO.FileNotFoundException | The file of the media does not exists; moved or deleted. |
UnsupportedContentException | The thumbnail is not available for the given media. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/content.write
Declaration
C#Copypublic bool Delete(string mediaId)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to delete. |
Returns
Type | Description |
---|---|
System.Boolean | true if the matched record was found and deleted, otherwise false. |
Remarks
The ScanFile(String) or the ScanFolderAsync(String) can be used instead.
Since API level 6, if the file related with the mediaId
in DB still exists in file system before calling this method,
System.InvalidOperationException will be thrown to keep consistency in DB.
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 |
|
System.ArgumentException |
|
UnauthorizedAccessException | The caller has no required privilege. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/content.write
DetectFaceAsync(String)
Detects faces from the given media. If the thumbnail already exists for the given media, the existing path will be returned.
Declaration
C#Copypublic Task<int> DetectFaceAsync(string mediaId)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to create the thumbnail. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> | A task that represents the asynchronous add operation. The task result contains the number of faces detected. |
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 |
|
RecordNotFoundException |
|
System.ArgumentException |
|
System.IO.FileNotFoundException | The file of the media does not exists; moved or deleted. |
UnsupportedContentException | Face detection is not available for the given media. |
System.NotSupportedException | The required feature is not supported. |
UnauthorizedAccessException | The caller has no required privilege. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/content.write
Feature: http://tizen.org/feature/vision.face_recognition
DetectFaceAsync(String, CancellationToken)
Creates the thumbnail image for the given media. If the thumbnail already exists for the given media, the existing path will be returned.
Declaration
C#Copypublic Task<int> DetectFaceAsync(string mediaId, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to create the thumbnail. |
CancellationToken | cancellationToken | The token to cancel the operation. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> | A task that represents the asynchronous operation. The task result contains the number of faces detected. |
Remarks
Media in the external storage is not supported, with the exception of MMC. Only JPEG, PNG, BMP images are supported.
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 |
|
RecordNotFoundException |
|
System.ArgumentException |
|
System.IO.FileNotFoundException | The file of the media does not exists; moved or deleted. |
UnsupportedContentException | Face detection is not available for the given media. |
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/content.write
Feature: http://tizen.org/feature/vision.face_recognition
Move(String, String)
Updates the path of the media to the specified destination path in the database.
Declaration
C#Copypublic bool Move(string mediaId, string newPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to move. |
System.String | newPath | The path that the media has been moved to. |
Returns
Type | Description |
---|---|
System.Boolean | true if the matched record was found and updated, otherwise false. |
Remarks
Usually, it is used after the media file is moved to the another path.
If you want to access internal storage, you should add privilege http://tizen.org/privilege/mediastorage.
If you want to access external storage, you should add privilege http://tizen.org/privilege/externalstorage.
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 |
|
System.ArgumentException |
|
System.IO.FileNotFoundException |
|
UnauthorizedAccessException | The caller has no required privilege. |
API Level: 4
Privilege Level: public
Privilege: http://tizen.org/privilege/content.writehttp://tizen.org/privilege/mediastoragehttp://tizen.org/privilege/externalstorage
Declaration
C#Copypublic MediaDataReader<Bookmark> SelectBookmark(string mediaId)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to select the bookmarks added to the media. |
Returns
Type | Description |
---|---|
MediaDataReader<Bookmark> | 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 |
|
System.ArgumentException |
|
API Level: 4
SelectBookmark(String, SelectArguments)
Retrieves the bookmarks added to the media with the SelectArguments.
Declaration
C#Copypublic MediaDataReader<Bookmark> SelectBookmark(string mediaId, SelectArguments filter)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to select the bookmarks added to the media. |
SelectArguments | filter | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
MediaDataReader<Bookmark> | 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 |
|
System.ArgumentException |
|
API Level: 4
SelectFaceInfo(String)
Retrieves the face information added to or detected from the media.
Declaration
C#Copypublic MediaDataReader<FaceInfo> SelectFaceInfo(string mediaId)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to select face information added to the media. |
Returns
Type | Description |
---|---|
MediaDataReader<FaceInfo> | 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 |
|
System.ArgumentException |
|
API Level: 4
SelectFaceInfo(String, SelectArguments)
Retrieves the face information added to or detected from the media with the SelectArguments.
Declaration
C#Copypublic MediaDataReader<FaceInfo> SelectFaceInfo(string mediaId, SelectArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to select the face information added to the media. |
SelectArguments | arguments | 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. |
ObjectDisposedException | The MediaDatabase has already been disposed. |
MediaDatabaseException | An error occurred while executing the command. |
System.ArgumentNullException |
|
System.ArgumentException |
|
API Level: 4
Declaration
C#Copypublic MediaDataReader<string> SelectGroupBy(MediaInfoColumnKey columnKey)
Parameters
Type | Name | Description |
---|---|---|
MediaInfoColumnKey | columnKey | The column key. |
Returns
Type | Description |
---|---|
MediaDataReader<System.String> | 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.ArgumentException |
|
API Level: 4
SelectGroupBy(MediaInfoColumnKey, SelectArguments)
Retrieves the group values of the specified column with the SelectArguments.
Declaration
C#Copypublic MediaDataReader<string> SelectGroupBy(MediaInfoColumnKey columnKey, SelectArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
MediaInfoColumnKey | columnKey | The column key. |
SelectArguments | arguments | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
MediaDataReader<System.String> | 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.ArgumentException |
|
API Level: 4
Declaration
C#Copypublic MediaDataReader<MediaInfo> SelectMedia()
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. |
API Level: 4
Declaration
C#Copypublic MediaInfo SelectMedia(string mediaId)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to retrieve. |
Returns
Type | Description |
---|---|
MediaInfo | The MediaInfo 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 |
|
System.ArgumentException |
|
API Level: 4
Declaration
C#Copypublic MediaDataReader<MediaInfo> SelectMedia(SelectArguments arguments)
Parameters
Type | Name | Description |
---|---|---|
SelectArguments | arguments | 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. |
API Level: 4
Declaration
C#Copypublic MediaDataReader<Tag> SelectTag(string mediaId)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to select tags added to the media. |
Returns
Type | Description |
---|---|
MediaDataReader<Tag> | 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 |
|
System.ArgumentException |
|
API Level: 4
SelectTag(String, SelectArguments)
Retrieves the tags that the media has with the SelectArguments.
Declaration
C#Copypublic MediaDataReader<Tag> SelectTag(string mediaId, SelectArguments filter)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to select tags added to the media. |
SelectArguments | filter | The criteria to use to filter. This value can be null. |
Returns
Type | Description |
---|---|
MediaDataReader<Tag> | 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 |
|
System.ArgumentException |
|
API Level: 4
Declaration
C#Copypublic bool UpdateFavorite(string mediaId, bool value)
Parameters
Type | Name | Description |
---|---|---|
System.String | mediaId | The media ID to update. |
System.Boolean | value | The value indicating whether the media is favorite. |
Returns
Type | Description |
---|---|
System.Boolean | true if the matched record was found and updated, otherwise false. |
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 |
|
System.ArgumentException |
|
UnauthorizedAccessException | The caller has no required privilege. |