Parameter List Class
A list of parameters, as found in the Content-Type and Content-Disposition headers.
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 ParameterList : IList<Parameter>,
ICollection<Parameter>, IEnumerable<Parameter>, IEnumerable- Inheritance
- Object ParameterList
Remarks
Parameters are used by both ContentType and ContentDisposition.
Constructors
| ParameterList | Initialize a new instance of the ParameterList class. |
Properties
| Count | Get the number of parameters in the ParameterList. |
| IsReadOnly | Get a value indicating whether this instance is read only. |
| ItemInt32 | Get or set the Parameter at the specified index. |
| ItemString | Get or set the value of a parameter with the specified name. |
Methods
| Add(Parameter) | Add a Parameter to a ParameterList. |
| Add(String, String) | Add a parameter with the specified name and value. |
| Add(Encoding, String, String) | Add a parameter with the specified name and value. |
| Add(String, String, String) | Add a parameter with the specified name and value. |
| Clear | Clear the parameter list. |
| Contains(Parameter) | Check if the ParameterList contains the specified parameter. |
| Contains(String) | Check if the ParameterList contains a parameter with the specified name. |
| CopyTo | Copy all of the parameters in the list 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 parameters. |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| IndexOf(Parameter) | Get the index of the requested parameter, if it exists. |
| IndexOf(String) | Get the index of the requested parameter, if it exists. |
| Insert(Int32, Parameter) | Insert a Parameter at the specified index. |
| Insert(Int32, String, String) | Insert a parameter with the specified name and value at the given index. |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| Remove(Parameter) | Remove a Parameter from a ParameterList. |
| Remove(String) | Remove a parameter. |
| RemoveAt | Remove the parameter at the specified index. |
| ToString |
Serialize a ParameterList to a string.
(Overrides ObjectToString) |
| TryGetValue(String, Parameter) | Get the parameter with the specified name. |
| TryGetValue(String, String) | Get the value of the parameter with the specified name. |