Click or drag to resize

SearchQuery Class

IT Hit WebDAV Classes Reference
WebDAV search query.
Inheritance Hierarchy
SystemObject
  ITHit.WebDAV.ClientSearchQuery

Namespace:  ITHit.WebDAV.Client
Assembly:  ITHit.WebDAV.Client (in ITHit.WebDAV.Client.dll) Version: 6.0.4052-Beta
Syntax
[SerializableAttribute]
public sealed class SearchQuery

The SearchQuery type exposes the following members.

Constructors
  NameDescription
Public methodSearchQuery
Initializes new instance of SearchQuery.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldEnableContains
Enables or disables search inside file content. Default is
true
.
Public fieldEnableLike
Enables or disables search by properties specified in
LikeProperties
list. Default is
true
.
Public fieldLikeProperties
List of properties to be used in like conditions. The search phrase will be searched in the properties specilied in this list.
Public fieldPhrase
Search phrase.
Public fieldSelectProperties

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.

Top
Examples
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;
See Also