Click or drag to resize
ScoreContactRuleInfoObjectQueryExtensionsWhereNotExpiredTQuery Method
Filters out objects which have their 'Expiration' column's day (e.g. Expiration) before currentDateTime.

Namespace: CMS.ContactManagement.Internal
Assembly: CMS.ContactManagement (in CMS.ContactManagement.dll) Version: 10.0.0
Syntax
C#
public static TQuery WhereNotExpired<TQuery>(
	this WhereConditionBase<TQuery> whereCondition,
	DateTime currentDateTime
)
where TQuery : new(), WhereConditionBase<TQuery>

Parameters

whereCondition
Type: CMS.DataEngineWhereConditionBaseTQuery
A query which has the expiration filter applied.
currentDateTime
Type: SystemDateTime
A date which the 'Expiration' column has to exceed for the object to be considered expired and filtered out.

Type Parameters

TQuery
Type of the query

Return Value

Type: TQuery
Query with the applied expiration filter.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WhereConditionBaseTQuery. 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).
See Also