Class MimeHeaderParameterCollection
A collection of MimeHeaderParameter objects, keyed by parameter name (case-insensitive).
Inherited Members
Namespace: DRIT.Mail.Rfc.Mime
Assembly: DRIT.Mail.dll
Syntax
public sealed class MimeHeaderParameterCollection : IEnumerable<MimeHeaderParameter>, IEnumerable
Constructors
View SourceMimeHeaderParameterCollection()
Initializes a new instance of the MimeHeaderParameterCollection class.
Declaration
public MimeHeaderParameterCollection()
Properties
View Sourcethis[string]
Gets the value of the first parameter with the specified name, or null if not found.
Declaration
public string? this[string name] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceAdd(MimeHeaderParameter)
Adds a parameter to the collection.
Declaration
public void Add(MimeHeaderParameter parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| MimeHeaderParameter | parameter | Specifies the parameter value. |
Add(string, string)
Adds a parameter with the specified name and value.
Declaration
public void Add(string name, string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Specifies the name value. |
| string | value | The value to process. |
Contains(string)
Determines whether a parameter with the specified name exists.
Declaration
public bool Contains(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Specifies the name value. |
Returns
| Type | Description |
|---|---|
| bool |
GetEnumerator()
Gets the enumerator.
Declaration
public IEnumerator<MimeHeaderParameter> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<MimeHeaderParameter> |