Class GroupAddress
A group address (RFC 5322 §3.4), consisting of a display name and a list of
mailbox members (e.g. Friends: alice@example.com, bob@example.com;).
Inherited Members
Namespace: DRIT.Mail.Rfc.Mime
Assembly: DRIT.Mail.dll
Syntax
public sealed class GroupAddress : InternetAddress
Constructors
View SourceGroupAddress(string?)
Initializes a new instance of the GroupAddress class.
Declaration
public GroupAddress(string? name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Specifies the name value. |
Properties
View SourceMembers
Gets the mailbox members of this group.
Declaration
public IReadOnlyList<MailboxAddress> Members { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<MailboxAddress> |
Methods
View SourceAdd(MailboxAddress)
Adds a mailbox to this group.
Declaration
public void Add(MailboxAddress mailbox)
Parameters
| Type | Name | Description |
|---|---|---|
| MailboxAddress | mailbox | Specifies the mailbox value. |
ToString()
Processes the to string data.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |