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: 2.14.0
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(String, 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 methodClear
Clear the parameter list.
Public methodContains(String)
Check if the ParameterList contains a parameter with the specified name.
Public methodContains(Parameter)
Check if the ParameterList contains the specified parameter.
Public methodCopyTo
Copy all of the parameters in the list to the specified array.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Get an enumerator for the list of parameters.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf(String)
Get the index of the requested parameter, if it exists.
Public methodIndexOf(Parameter)
Ges 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
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove(String)
Remove the specified parameter.
Public methodRemove(Parameter)
Remove a Parameter from a ParameterList.
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