CreateNot

DocumentFilter.CreateNot method

Creates a filter that has inverse logic in relation to the specified inner filter.

public static DocumentFilter CreateNot(DocumentFilter innerFilter)
Parameter Type Description
innerFilter DocumentFilter The inner document filter.

Return Value

An inverted document filter.

Exceptions

exception condition
ArgumentException The filters would be nested more than 128 levels deep.

See Also