SearchFilter.SearchFilterCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a collection of search filters that are linked by a logical operator.
public: ref class SearchFilter::SearchFilterCollection sealed : Microsoft::Exchange::WebServices::Data::SearchFilter, System::Collections::Generic::IEnumerable<Microsoft::Exchange::WebServices::Data::SearchFilter ^>
public sealed class SearchFilter.SearchFilterCollection : Microsoft.Exchange.WebServices.Data.SearchFilter, System.Collections.Generic.IEnumerable<Microsoft.Exchange.WebServices.Data.SearchFilter>
Public NotInheritable Class SearchFilter.SearchFilterCollection
Inherits SearchFilter
Implements IEnumerable(Of SearchFilter)
- Inheritance
- Implements
Remarks
You can use the SearchFilter.SearchFilterCollection class to define complex search filters such as "Condition1 AND Condition2".
Constructors
SearchFilter.SearchFilterCollection() |
Initializes a new instance of the SearchFilter.SearchFilterCollection class. |
SearchFilter.SearchFilterCollection(LogicalOperator, IEnumerable<SearchFilter>) |
Initializes a new instance of the SearchFilter.SearchFilterCollection class with the specified logical operator and search filters. |
SearchFilter.SearchFilterCollection(LogicalOperator, SearchFilter[]) |
Initializes a new instance of the SearchFilter.SearchFilterCollection class with the specified logical operator and search filters. |
SearchFilter.SearchFilterCollection(LogicalOperator) |
Initializes a new instance of the SearchFilter.SearchFilterCollection class with the specified logical operator. |
Properties
Count |
Gets the total number of search filters in the collection. |
Item[Int32] |
Gets or sets the search filter at the specified index. |
LogicalOperator |
Gets or sets the logical operator that links the search filters in this collection. |
Methods
Add(SearchFilter) |
Adds a search filter of any type to the collection. |
AddRange(IEnumerable<SearchFilter>) |
Adds one or more search filters to the collection. |
Clear() |
Clears the collection of search filters. |
Contains(SearchFilter) |
Determines whether a specific search filter is in the collection. |
GetEnumerator() |
Gets an enumerator that iterates through the elements of the collection. |
Remove(SearchFilter) |
Removes the specified search filter from the collection. |
RemoveAt(Int32) |
Removes the search filter at the specified index from the collection. |
Explicit Interface Implementations
IEnumerable.GetEnumerator() |
Gets an enumerator that iterates through the elements of the collection. The IEnumerable.GetEnumerator() method is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013. |