C# Class LumiSoft.Net.Mime.HeaderFieldCollection

Mime entity header fields collection.
Inheritance: IEnumerable
Afficher le fichier Open project: jeske/StepsDB-alpha Class Usage Examples

Méthodes publiques

Méthode Description
Add ( HeaderField headerField ) : void

Adds specified heade field to the end of the collection.

Add ( string fieldName, string value ) : void

Adds a new header field with specified name and value to the end of the collection.

Clear ( ) : void

Clears the collection of all header fields.

Contains ( HeaderField headerField ) : bool

Gets if collection contains specified header field.

Contains ( string fieldName ) : bool

Gets if collection contains specified header field.

Get ( string fieldName ) : LumiSoft.Net.Mime.HeaderField[]

Gets header fields with specified name, returns null if specified field doesn't exist.

GetEnumerator ( ) : IEnumerator

Gets enumerator.

GetFirst ( string fieldName ) : HeaderField

Gets first header field with specified name, returns null if specified field doesn't exist.

HeaderFieldCollection ( ) : System

Default constructor.

Insert ( int index, string fieldName, string value ) : void

Inserts a new header field into the collection at the specified location.

Parse ( Stream stream ) : void

Parses header fields from stream. Stream position stays where header reading ends.

Parse ( string headerString ) : void

Parses header fields from string.

Remove ( HeaderField field ) : void

Removes specified header field from the collection.

Remove ( int index ) : void

Removes header field at the specified index from the collection.

RemoveAll ( string fieldName ) : void

Removes all header fields with specified name from the collection.

ToHeaderString ( string encodingCharSet ) : string

Converts header fields to rfc 2822 message header string.

this ( int index ) : HeaderField

Gets header field from specified index.

Private Methods

Méthode Description
EncodeHeaderField ( string text ) : string

Encodes header field with quoted-printable encoding, if value contains ANSI or UNICODE chars.

Method Details

Add() public méthode

Adds specified heade field to the end of the collection.
public Add ( HeaderField headerField ) : void
headerField HeaderField Header field.
Résultat void

Add() public méthode

Adds a new header field with specified name and value to the end of the collection.
public Add ( string fieldName, string value ) : void
fieldName string Header field name.
value string Header field value.
Résultat void

Clear() public méthode

Clears the collection of all header fields.
public Clear ( ) : void
Résultat void

Contains() public méthode

Gets if collection contains specified header field.
public Contains ( HeaderField headerField ) : bool
headerField HeaderField Header field.
Résultat bool

Contains() public méthode

Gets if collection contains specified header field.
public Contains ( string fieldName ) : bool
fieldName string Header field name.
Résultat bool

Get() public méthode

Gets header fields with specified name, returns null if specified field doesn't exist.
public Get ( string fieldName ) : LumiSoft.Net.Mime.HeaderField[]
fieldName string Header field name.
Résultat LumiSoft.Net.Mime.HeaderField[]

GetEnumerator() public méthode

Gets enumerator.
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

GetFirst() public méthode

Gets first header field with specified name, returns null if specified field doesn't exist.
public GetFirst ( string fieldName ) : HeaderField
fieldName string Header field name.
Résultat HeaderField

HeaderFieldCollection() public méthode

Default constructor.
public HeaderFieldCollection ( ) : System
Résultat System

Insert() public méthode

Inserts a new header field into the collection at the specified location.
public Insert ( int index, string fieldName, string value ) : void
index int The location in the collection where you want to add the header field.
fieldName string Header field name.
value string Header field value.
Résultat void

Parse() public méthode

Parses header fields from stream. Stream position stays where header reading ends.
public Parse ( Stream stream ) : void
stream Stream Stream from where to parse.
Résultat void

Parse() public méthode

Parses header fields from string.
public Parse ( string headerString ) : void
headerString string Header string.
Résultat void

Remove() public méthode

Removes specified header field from the collection.
public Remove ( HeaderField field ) : void
field HeaderField Header field to remove.
Résultat void

Remove() public méthode

Removes header field at the specified index from the collection.
public Remove ( int index ) : void
index int The index of the header field to remove.
Résultat void

RemoveAll() public méthode

Removes all header fields with specified name from the collection.
public RemoveAll ( string fieldName ) : void
fieldName string Header field name.
Résultat void

ToHeaderString() public méthode

Converts header fields to rfc 2822 message header string.
public ToHeaderString ( string encodingCharSet ) : string
encodingCharSet string CharSet to use for non ASCII header field values. Utf-8 is recommended value, if you explicity don't need other.
Résultat string

this() public méthode

Gets header field from specified index.
public this ( int index ) : HeaderField
index int
Résultat HeaderField