Class QueryArguments

Definition

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

The Base class for query arguments.

C#
Copy
public class QueryArguments
Inheritance
System.Object
QueryArguments
Derived
Remarks

A filter is required for filtering information associated with Album, Folder, Tag, Bookmark, Playlist, and MediaInfo on the basis of details like limit, order, and condition.

Properties

View Source

FilterExpression

Gets or sets the filtering expression that is applied.

Declaration
C#
Copy
public string FilterExpression { get; set; }
Property Value
Type Description
System.String

A string that represents a filtering expression applied when data is retrieved.

Remarks

Expressions for the filter can be one of the following forms:

  • column = value
  • column > value
  • column >= value
  • column < value
  • column <= value
  • value = column
  • value >= column
  • value < column
  • value <= column
  • column IN (value)
  • column IN(value-list)
  • column NOT IN(value)
  • column NOT IN(value-list)
  • column LIKE value
  • expression COLLATE NOCASE
  • expression COLLATE RTRIM
  • expression COLLATE LOCALIZED
  • expression1 AND expression2 OR expression3 ...
    Note that if you want to set quotation (" ' " or " " ") as value of LIKE operator, you should use two times. (" '' " or " "" "). And the optional ESCAPE clause is supported. Both percent symbol("%") and underscore symbol("_") are used in the LIKE pattern. If these characters are used as values of the LIKE operation, then the expression following the ESCAPE clause of sqlite will be ignored.

    For example, column LIKE ('#%') ESCAPE ('#') - "#" is an escape character, it will be ignored.
Exceptions
Type Condition
System.ArgumentException

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

API Level: 4
View Source

StorageId

Gets or sets the storage ID for the given filter. You can use this property when you want to search items only in the specific storage.

Declaration
C#
Copy
[Obsolete("Please do not use! this will be deprecated in level 6")] public string StorageId { get; set; }
Property Value
Type Description
System.String

The storage ID to restrict storage to search, or null for all storages.

Exceptions
Type Condition
System.ArgumentException

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

API Level: 4