Click or drag to resize
ContactInfoObjectQueryExtensionsSearchedForAll Method
Filters out contacts who have searched for all of the specified keywords in last x days.

Namespace: CMS.ContactManagement
Assembly: CMS.ContactManagement (in CMS.ContactManagement.dll) Version: 13.0.131
Syntax
C#
public static ObjectQuery<ContactInfo> SearchedForAll(
	this ObjectQuery<ContactInfo> contactsQuery,
	IEnumerable<string> keywords,
	int lastXDays = 0
)

Parameters

contactsQuery
Type: CMS.DataEngineObjectQueryContactInfo
Object query for contact info
keywords
Type: System.Collections.GenericIEnumerableString
Array of keywords
lastXDays (Optional)
Type: SystemInt32
In last x days

Return Value

Type: ObjectQueryContactInfo

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ObjectQueryContactInfo. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptioncontactsQuery is null
See Also