C# Class RemObjects.InternetPack.Messages.Mime.Header.MessageHeader

Class that holds all headers for a message
Headers which are unknown the the parser will be held in the UnknownHeaders collection.

This class cannot be instantiated from outside the library.
See RFC 4021 for a large list of headers.
Mostrar archivo Open project: remobjects/internetpack Class Usage Examples

Public Methods

Method Description
MessageHeader ( ) : System
MessageHeader ( NameValueCollection headers ) : System

Parses a NameValueCollection to a MessageHeader

ParseHeader ( String headerName, String headerValue ) : void

Parses a single header and sets member variables according to it.

Store ( StringBuilder sb ) : void
ToString ( ) : String
this ( String name ) : String

Private Methods

Method Description
HeaderValueChanged ( String headerName, String headerValue ) : void
ParseAddresses ( String input ) : MessageAddresses
ParseHeaders ( NameValueCollection headers ) : void

Parses a NameValueCollection to a MessageHeader

Method Details

MessageHeader() public method

public MessageHeader ( ) : System
return System

MessageHeader() public method

Parses a NameValueCollection to a MessageHeader
If is
public MessageHeader ( NameValueCollection headers ) : System
headers System.Collections.Specialized.NameValueCollection The collection that should be traversed and parsed
return System

ParseHeader() public method

Parses a single header and sets member variables according to it.
If or is
public ParseHeader ( String headerName, String headerValue ) : void
headerName String The name of the header
headerValue String The value of the header in unfolded state (only one line)
return void

Store() public method

public Store ( StringBuilder sb ) : void
sb StringBuilder
return void

ToString() public method

public ToString ( ) : String
return String

this() public method

public this ( String name ) : String
name String
return String