Class SearchFilter.ContainsSubstring
- Namespace
- Microsoft.Exchange.WebServices.Data
- Assembly
- Microsoft.Exchange.WebServices.dll
Represents a search filter that checks for the presence of a substring inside a text property. Applications can use ContainsSubstring to define conditions such as "Field CONTAINS Value" or "Field IS PREFIXED WITH Value".
public sealed class SearchFilter.ContainsSubstring : SearchFilter.PropertyBasedFilter
- Inheritance
-
SearchFilter.ContainsSubstring
- Inherited Members
Constructors
ContainsSubstring()
Initializes a new instance of the SearchFilter.ContainsSubstring class.
public ContainsSubstring()
ContainsSubstring(PropertyDefinitionBase, string)
Initializes a new instance of the SearchFilter.ContainsSubstring class. The ContainmentMode property is initialized to ContainmentMode.Substring, and the ComparisonMode property is initialized to ComparisonMode.IgnoreCase.
public ContainsSubstring(PropertyDefinitionBase propertyDefinition, string value)
Parameters
propertyDefinition
PropertyDefinitionBaseThe definition of the property that is being compared. Property definitions are available as static members from schema classes (for example, EmailMessageSchema.Subject, AppointmentSchema.Start, ContactSchema.GivenName, etc.)
value
stringThe value to compare with.
ContainsSubstring(PropertyDefinitionBase, string, ContainmentMode, ComparisonMode)
Initializes a new instance of the SearchFilter.ContainsSubstring class.
public ContainsSubstring(PropertyDefinitionBase propertyDefinition, string value, ContainmentMode containmentMode, ComparisonMode comparisonMode)
Parameters
propertyDefinition
PropertyDefinitionBaseThe definition of the property that is being compared. Property definitions are available as static members from schema classes (for example, EmailMessageSchema.Subject, AppointmentSchema.Start, ContactSchema.GivenName, etc.)
value
stringThe value to compare with.
containmentMode
ContainmentModeThe containment mode.
comparisonMode
ComparisonModeThe comparison mode.
Properties
ComparisonMode
Gets or sets the comparison mode.
public ComparisonMode ComparisonMode { get; set; }
Property Value
ContainmentMode
Gets or sets the containment mode.
public ContainmentMode ContainmentMode { get; set; }
Property Value
Value
Gets or sets the value to compare the specified property with.
public string Value { get; set; }