Click or drag to resize
RecipientsExtensionsGetRecipientsProvider Method (NewsletterInfo)
Returns recipients provider for given newsletter. More information about the provider can be found here IRecipientsProvider.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 13.0.131
Syntax
C#
public static IRecipientsProvider GetRecipientsProvider(
	this NewsletterInfo newsletter
)

Parameters

newsletter
Type: CMS.NewslettersNewsletterInfo

Return Value

Type: IRecipientsProvider

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type NewsletterInfo. 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
ArgumentExceptionThrown when newsletter is not type of Newsletter
See Also