Class RecipientCollection
- Namespace
- Dynamicweb.Mailing
- Assembly
- Dynamicweb.Core.dll
Represents collection of recipients
public class RecipientCollection : Collection<Recipient>, IList<Recipient>, ICollection<Recipient>, IReadOnlyList<Recipient>, IReadOnlyCollection<Recipient>, IEnumerable<Recipient>, IList, ICollection, IEnumerable
- Inheritance
-
RecipientCollection
- Implements
- Inherited Members
- Extension Methods
Constructors
RecipientCollection()
Default constructor
public RecipientCollection()
RecipientCollection(IList<Recipient>)
Creates new object with defined list of recipients
public RecipientCollection(IList<Recipient> src)
Parameters
Properties
RequireUniqueRecipients
Gets or sets if it needs Recipients to be required
public bool RequireUniqueRecipients { get; set; }
Property Value
- bool
True or false
Methods
ClearItems()
Removes all elements from the Collection<T>.
protected override void ClearItems()
InsertItem(int, Recipient)
Inserts an element into the Collection<T> at the specified index.
protected override void InsertItem(int index, Recipient item)
Parameters
index
intThe zero-based index at which
item
should be inserted.item
RecipientThe object to insert. The value can be null for reference types.
Exceptions
- ArgumentOutOfRangeException
index
is less than zero.-or-
index
is greater than Count.
RemoveItem(int)
Removes the element at the specified index of the Collection<T>.
protected override void RemoveItem(int index)
Parameters
index
intThe zero-based index of the element to remove.
Exceptions
- ArgumentOutOfRangeException
index
is less than zero.-or-
index
is equal to or greater than Count.
SetItem(int, Recipient)
Replaces the element at the specified index.
protected override void SetItem(int index, Recipient item)
Parameters
index
intThe zero-based index of the element to replace.
item
RecipientThe new value for the element at the specified index. The value can be null for reference types.
Exceptions
- ArgumentOutOfRangeException
index
is less than zero.-or-
index
is greater than Count.