Domain List Class
A domain list.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public class DomainList : IList<string>,
ICollection<string>, IEnumerable<string>, IEnumerable- Inheritance
- Object DomainList
- Implements
- ICollectionString, IEnumerableString, IListString, IEnumerable
Remarks
Represents a list of domains, such as those that an email was routed through.
Constructors
| DomainList | Initialize a new instance of the DomainList class. |
| DomainList(IEnumerableString) | Initialize a new instance of the DomainList class. |
Properties
| Count | Get the number of domains in the DomainList. |
| IsReadOnly | Get a value indicating whether the DomainList is read only. |
| Item | Get or set the domain at the specified index. |
Methods
| Add | Add a domain. |
| Clear | Clear the domain list. |
| Contains | Check if the DomainList contains the specified domain. |
| CopyTo | Copy all of the domains in the DomainList to an array. |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetEnumerator | Get an enumerator for the list of domains. |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| IndexOf | Get the index of the requested domain, if it exists. |
| Insert | Insert a domain at the specified index. |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| Remove | Remove a domain. |
| RemoveAt | Remove the domain at the specified index. |
| ToString |
Return a string representation of the list of domains.
(Overrides ObjectToString) |
| TryParse | Try to parse a list of domains. |