Click or drag to resize
MimeKit

ParameterList Class

A list of parameters, as found in the Content-Type and Content-Disposition headers.
Inheritance Hierarchy
SystemObject
  MimeKitParameterList

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public class ParameterList : IList<Parameter>, 
	ICollection<Parameter>, IEnumerable<Parameter>, IEnumerable

The ParameterList type exposes the following members.

Constructors
 NameDescription
Public methodParameterList Initialize a new instance of the ParameterList class.
Top
Properties
 NameDescription
Public propertyCount Get the number of parameters in the ParameterList.
Public propertyIsReadOnly Get a value indicating whether this instance is read only.
Public propertyItemInt32 Get or set the Parameter at the specified index.
Public propertyItemString Get or set the value of a parameter with the specified name.
Top
Methods
 NameDescription
Public methodAdd(Parameter) Add a Parameter to a ParameterList.
Public methodAdd(String, String) Add a parameter with the specified name and value.
Public methodAdd(Encoding, String, String) Add a parameter with the specified name and value.
Public methodAdd(String, String, String) Add a parameter with the specified name and value.
Public methodClear Clear the parameter list.
Public methodContains(Parameter) Check if the ParameterList contains the specified parameter.
Public methodContains(String) Check if the ParameterList contains a parameter with the specified name.
Public methodCopyTo Copy all of the parameters in the list to an array.
Public methodEquals
(Inherited from Object)
Protected methodFinalize
(Inherited from Object)
Public methodGetEnumerator Get an enumerator for the list of parameters.
Public methodGetHashCode
(Inherited from Object)
Public methodGetType
(Inherited from Object)
Public methodIndexOf(Parameter) Get the index of the requested parameter, if it exists.
Public methodIndexOf(String) Get the index of the requested parameter, if it exists.
Public methodInsert(Int32, Parameter) Insert a Parameter at the specified index.
Public methodInsert(Int32, String, String) Insert a parameter with the specified name and value at the given index.
Protected methodMemberwiseClone
(Inherited from Object)
Public methodRemove(Parameter) Remove a Parameter from a ParameterList.
Public methodRemove(String) Remove the specified parameter.
Public methodRemoveAt Remove the parameter at the specified index.
Public methodToString Serialize a ParameterList to a string.
(Overrides ObjectToString)
Public methodCode exampleTryGetValue(String, Parameter) Get the parameter with the specified name.
Public methodTryGetValue(String, String) Get the value of the parameter with the specified name.
Top
Remarks
Parameters are used by both ContentType and ContentDisposition.
See Also