Compartir a través de


MimeWriter Members

Include Protected Members
Include Inherited Members

The MimeWriter class writes MIME to a stream.

The MimeWriter type exposes the following members.

Constructors

  Name Description
Public method MimeWriter(Stream) The MimeWriter constructor creates a new MimeWriter object that will write MIME data to data.
Public method MimeWriter(Stream, Boolean, EncodingOptions) The MimeWriter constructor creates a new MimeWriter object.

Top

Properties

  Name Description
Public property EmbeddedDepth The EmbeddedDepth property gets an integer representing how deeply the current message is embedded.
Public property EncodingOptions The EncodingOptions property gets a EncodingOptions class that controls how the MIME data is encoded as it is written.
Public property PartBoundary The PartBoundary property gets a string containing the part boundary for the current part.
Public property PartDepth The PartDepth property gets an integer indicating how deeply the current part being written is nested.
Public property StreamOffset The StreamOffset property gets an integer indicating the number of bytes written so far.

Top

Methods

  Name Description
Public method Close The Close method closes the stream to which this MimeWriter object writes.
Public method Dispose() Releases all resources used by the MimeWriter.
Protected method Dispose(Boolean) Releases the unmanaged resources used by the MimeWriter and optionally releases the managed resources.
Public method EndContent The EndContent method closes the stream to which this MimeWriter writes.
Public method EndGroup The EndGroup method ends the current group so that other recipients will be added outside of the current group.
Public method EndPart The EndPart method ends the current part.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method Flush The Flush method flushes the data in this Flush object to the underlying stream.
Public method GetContentWriteStream The GetContentWriteStream method returns a stream to which you can write the content of the current part using the current value of Content-Transfer-Encoding header.
Public method GetEmbeddedMessageWriter The GetEmbeddedMessageWriter method returns a MimeWriter object that can be used to write an embedded message.
Public method GetHashCode (Inherited from Object.)
Public method GetRawContentWriteStream The GetRawContentWriteStream method returns a stream to which you can write content to the current part without applying a content transfer encoding.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method StartGroup The StartGroup method starts an e-mail group.
Public method StartHeader(String) The StartHeader method starts a header using the name supplied by the name parameter.
Public method StartHeader(HeaderId) The StartHeader method starts a header using the header ID value in the headerID parameter.
Public method StartPart The StartPart method begins a new MIME part.
Public method ToString (Inherited from Object.)
Public method WriteAddress The WriteAddress method writes an address from the MimeAddressReader specified by the reader parameter.
Public method WriteContent(Stream) The WriteContent method writes content from a source Stream to the stream that this MimeWriter object owns.
Public method WriteContent(MimeReader) The WriteContent method writes content from a MimeReader object to the stream that this MimeWriter object owns.
Public method WriteContent([], Int32, Int32) The WriteContent method writes data from a buffer into the stream that this MimeWriter object owns.
Public method WriteHeader(MimeHeaderReader) The WriteHeader method writes the next header from a MimeReader object into the stream that this MimeWriter object owns.
Public method WriteHeader(String, String) The WriteHeader method writes a header of a specified type and specified value to the stream that this MimeWriter object owns.
Public method WriteHeader(HeaderId, String) The WriteHeader method writes a header of a specified type and specified value to the stream that this MimeWriter object owns.
Public method WriteHeaderValue(DateTime) The WriteHeaderValue method writes a Date-Time value to the current header.
Public method WriteHeaderValue(String) The WriteHeaderValue method writes a value specified by a string to the stream that this MimeWriter object owns.
Public method WriteParameter(MimeParameterReader) The WriteParameter method writes a parameter to the current header in the stream that this MimeWriter object owns.
Public method WriteParameter(String, String) The WriteParameter method writes a parameter to the current header in the stream that this MimeWriter object owns.
Public method WritePart The WritePart method writes a part to the stream that this MimeWriter object owns.
Public method WriteRawContent(Stream) The WriteRawContent method writes content from a source stream to the stream that this MimeWriter object owns and does not apply an encoding to the content as it is written.
Public method WriteRawContent([], Int32, Int32) The WriteRawContent method writes content from a byte array to the stream that this MimeWriter object owns and does not apply an encoding to the content as it is written.
Public method WriteRecipient The WriteRecipient method writes a recipient to the stream that this MimeWriter object owns.

Top