Click or drag to resize
RecipientsExtensions.WithoutUnsubscribed 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: 13.0.131
Syntax
C#
public static ObjectQuery<ContactInfo> WithoutUnsubscribed(
	this ObjectQuery<ContactInfo> contacts,
	int newsletterId
)

Parameters

contacts
Type: CMS.DataEngine.ObjectQuery<ContactInfo>
newsletterId
Type: System.Int32

Return Value

Type: ObjectQuery<ContactInfo>

Usage Note

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