C# Class Sage.SData.Client.Mime.MimePart

Represents a MIME protocol message part.
Inheritance: IDisposable
Mostra file Open project: Saleslogix/SDataCSharpClientLib

Public Methods

Method Description
Dispose ( ) : void
MimePart ( Stream content ) : System

Initializes a new instance of the MimePart class using the supplied content.

MimePart ( Stream content, WebHeaderCollection headers ) : System

Initializes a new instance of the MimePart class using the supplied content and headers.

WriteTo ( StreamWriter writer, string boundary ) : void

Writes the MIME part to the specified stream writer.

Private Methods

Method Description
SetHeaderValue ( HttpRequestHeader name, string value ) : void
SetHeaderValue ( string name, string value ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

MimePart() public method

Initializes a new instance of the MimePart class using the supplied content.
public MimePart ( Stream content ) : System
content Stream The content of the MIME part.
return System

MimePart() public method

Initializes a new instance of the MimePart class using the supplied content and headers.
public MimePart ( Stream content, WebHeaderCollection headers ) : System
content Stream The content of the MIME part.
headers System.Net.WebHeaderCollection The headers of the MIME part.
return System

WriteTo() public method

Writes the MIME part to the specified stream writer.
public WriteTo ( StreamWriter writer, string boundary ) : void
writer System.IO.StreamWriter The destination writer to write to.
boundary string The unique string used to designated the beginning of the part.
return void