Click or drag to resize
SubscriberInfoProviderRemoveSubscriptions Method (String, ListInt32, Int32, Boolean, Guid, ICollectionString)
Unsubscribe subscribers from specified newsletters.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 9.0.0
Syntax
C#
public static List<string> RemoveSubscriptions(
	string importString,
	List<int> newsletterIds,
	int siteId,
	bool sendEmail,
	Guid processGuid = null,
	ICollection<string> errors = null
)

Parameters

importString
Type: SystemString
String representation of subscribers in format 'email;firstName;lastName'
newsletterIds
Type: System.Collections.GenericListInt32
Array list with newsletter IDs where should be the subscribers removed from
siteId
Type: SystemInt32
Site ID
sendEmail
Type: SystemBoolean
Indicates if confirmation e-mail should be sent
processGuid (Optional)
Type: SystemGuid
Asynchronous process Guid
errors (Optional)
Type: System.Collections.GenericICollectionString
ICollection of errors for asynchronous process

Return Value

Type: ListString
See Also