HeaderCollection Class

Defines the collection of header fields
Inheritance Hierarchy
SystemObject
  Aspose.Email.MimeHeaderCollection

Namespace:  Aspose.Email.Mime
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
[SerializableAttribute]
public class HeaderCollection : ICollection<string>, 
	IEnumerable<string>, IEnumerable

The HeaderCollection type exposes the following members.

Constructors
  NameDescription
Public methodHeaderCollection
Initializes a new instance of the HeaderCollection class.
Public methodHeaderCollection(HeaderCollection)
Initializes a new instance of the HeaderCollection class.
Properties
  NameDescription
Public propertyAllKeys
Gets an array of strings containing all header keys in collections
Public propertyCount
Gets a count of headers
Public propertyIsReadOnly
Is collection readonly
Public propertyItemInt32
Gets a value from collection by the index.
Public propertyItemString
Gets a value from collection by the name.
Public propertyKeys
Gets a ReadOnlyCollectionstring containing all header keys in collections
Methods
  NameDescription
Public methodAdd(String)
Adds the header without value
Public methodAdd(HeaderCollection)
Adds a header to collection.
Public methodAdd(String, String)
Adds the header.
Public methodAdd_
Adds the header.
Public methodClear
Clears all headers.
Public methodContains
Gets a value indicating whether the specified header is contained in the collection
Public methodCopyTo
Copies all the elements of the current collection to the specified string array starting at the specified destination index.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGet(Int32)
Gets the value at the specified index.
Public methodGet(String)
Gets the header value by a given header name.
Public methodGetDecodedValue
Gets the header value.
Public methodGetEnumerator
Returns an enumerator that iterates through a collection.
Public methodGetHashCode (Inherited from Object.)
Public methodGetKey
Gets the key at the specified index of the collection.
Public methodGetType (Inherited from Object.)
Public methodGetValues
Gets the header values.
Public methodHasKeys
Gets a value indicating whether the collection contains keys.
Public methodInsert
Inserts the header in collection. If collection contains headers with the same name this header will be inserted before other headers with the same name.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove
Removes the header from collection by a given header name.
Public methodSet
Sets the header.
Public methodToString (Inherited from Object.)
See Also