Click or drag to resize
RecipientsExtensionsWithoutUnsubscribed Method
Restricts contact query (contacts) to return only subscribed contacts, all opted out recipients are removed.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 12.0.0
Syntax
C#
public static ObjectQuery<ContactInfo> WithoutUnsubscribed(
	this ObjectQuery<ContactInfo> contacts,
	int newsletterId
)

Parameters

contacts
Type: CMS.DataEngineObjectQueryContactInfo
newsletterId
Type: SystemInt32

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).
See Also