Namespace: ITHit.WebDAV.Client
The SearchQuery type exposes the following members.
Name | Description | |
---|---|---|
SearchQuery |
Initializes new instance of SearchQuery.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
EnableContains |
Enables or disables search inside file content. Default is true | |
EnableLike | ||
LikeProperties |
List of properties to be used in like conditions. The search phrase will be searched in the properties specilied in this list.
| |
Phrase |
Search phrase.
| |
SelectProperties | Properties to be returned from server with each item returned in search results. This property can be used to request any additional data required in search results, such as snippet of text around the search phrase, document title, author name, etc. |
SearchQuery oSearchQuery = new SearchQuery("Note%"); //By default WebDAV Ajax Client search by DisplayName property. //You can add other properties to this list. oSearchQuery.LikeProperties.Add(new PropertyName("creator-displayname", "DAV:")); oSearchQuery.LikeProperties.Add(new PropertyName("comment", "DAV:")); // Disable search by file content oSearchQuery.EnableContains = false;