Class UnifiedSearchQuery

A class to build and execute search queries against the file system.

Inheritance
System.Object
UnifiedSearchQuery
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Hosting
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class UnifiedSearchQuery

Constructors

UnifiedSearchQuery()

Default constructor.

Declaration
public UnifiedSearchQuery()

Properties

FileNamePattern

The pattern used for matching files.

Declaration
public string FileNamePattern { get; set; }
Property Value
Type Description
System.String
Remarks

A pattern could be "*.jpg" to find all images of this type.

FreeTextQuery

Text to search for.

Declaration
public string FreeTextQuery { get; set; }
Property Value
Type Description
System.String
Remarks
note

Note: A file system provider may not support free text queries. In that case this parameter may be completely ignored during the search.

MatchSummary

A dictionary that contains key / value pairs to search for in file/folder summaries.

Declaration
public IDictionary<string, string> MatchSummary { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.String>

ModifiedFrom

Limits search to files changed after this date.

Declaration
public DateTime ModifiedFrom { get; set; }
Property Value
Type Description
System.DateTime
Remarks

Default value is DateTime.MinValue.

ModifiedTo

Limits search to files changed before this date.

Declaration
public DateTime ModifiedTo { get; set; }
Property Value
Type Description
System.DateTime
Remarks

Default value is DateTime.MaxValue.

Path

Searches in all files in this path.

Declaration
public string Path { get; set; }
Property Value
Type Description
System.String

Extension Methods