Header Set Class
A set of headers.
Definition
Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public class HeaderSet : ICollection<string>,
IEnumerable<string>, IEnumerable- Inheritance
- Object HeaderSet
- Implements
- ICollectionString, IEnumerableString, IEnumerable
Remarks
A set of headers.
Constructors
| HeaderSet | Initializes a new instance of the HeaderSet class. |
| HeaderSet(IEnumerableHeaderId) | Initializes a new instance of the HeaderSet class. |
| HeaderSet(IEnumerableString) | Initializes a new instance of the HeaderSet class. |
Properties
| Count | Get the number of headers in the set. |
| Exclude | Get or set whether this set of headers is meant to be excluded when used with a IFetchRequest. |
| IsReadOnly | Get whether or not the set of headers is read-only. |
Methods
| Add(HeaderId) | Add the specified header. |
| Add(String) | Add the specified header. |
| AddRange(IEnumerableHeaderId) | Add a collection of headers. |
| AddRange(IEnumerableString) | Add a collection of headers. |
| Clear | Clear the set of headers. |
| Contains(HeaderId) | Check if the set of headers contains the specified header. |
| Contains(String) | Check if the set of headers contains the specified header. |
| CopyTo | Copy all of the headers in the HeaderSet to the specified 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 set of headers. |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| Remove(HeaderId) | Remove the specified header. |
| Remove(String) | Remove the specified header. |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
Fields
| All | A set of headers that only includes all headers. |
| Envelope | A set of headers that only includes the standard envelope headers. |
| References | A set of headers that only includes the References header. |