Method | Description | |
---|---|---|
Add ( |
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 ( |
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 ) : |
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 ( |
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 ) : |
Gets header field from specified index.
|
Method | Description | |
---|---|---|
EncodeHeaderField ( string text ) : string |
Encodes header field with quoted-printable encoding, if value contains ANSI or UNICODE chars.
|
public Add ( |
||
headerField | Header field. | |
return | void |
public Add ( string fieldName, string value ) : void | ||
fieldName | string | Header field name. |
value | string | Header field value. |
return | void |
public Contains ( |
||
headerField | Header field. | |
return | bool |
public Contains ( string fieldName ) : bool | ||
fieldName | string | Header field name. |
return | bool |
public Get ( string fieldName ) : LumiSoft.Net.Mime.HeaderField[] | ||
fieldName | string | Header field name. |
return | LumiSoft.Net.Mime.HeaderField[] |
public GetFirst ( string fieldName ) : |
||
fieldName | string | Header field name. |
return |
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. |
return | void |
public Parse ( Stream stream ) : void | ||
stream | Stream | Stream from where to parse. |
return | void |
public Parse ( string headerString ) : void | ||
headerString | string | Header string. |
return | void |
public Remove ( |
||
field | Header field to remove. | |
return | void |
public Remove ( int index ) : void | ||
index | int | The index of the header field to remove. |
return | void |
public RemoveAll ( string fieldName ) : void | ||
fieldName | string | Header field name. |
return | void |
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. |
return | string |