Click or drag to resize
MimeKit

ContentObject Class

Note: This API is now obsolete.

Encapsulates a content stream used by MimePart.
Inheritance Hierarchy

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 2.14.0
Syntax
C#
[ObsoleteAttribute("Use the MimeContent class instead.")]
public class ContentObject : MimeContent

The ContentObject type exposes the following members.

Constructors
  NameDescription
Public methodContentObject Obsolete.
Initialize a new instance of the ContentObject class.
Top
Properties
  NameDescription
Public propertyEncoding
Get or set the content encoding.
(Inherited from MimeContent.)
Public propertyNewLineFormat
Get the new-line format, if known.
(Inherited from MimeContent.)
Public propertyStream
Get the content stream.
(Inherited from MimeContent.)
Top
Methods
  NameDescription
Public methodCode exampleDecodeTo
Decode the content stream into another stream.
(Inherited from MimeContent.)
Public methodCode exampleDecodeToAsync
Asynchronously decode the content stream into another stream.
(Inherited from MimeContent.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpen
Open the decoded content stream.
(Inherited from MimeContent.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWriteTo
Copy the content stream to the specified output stream.
(Inherited from MimeContent.)
Public methodWriteToAsync
Asynchronously copy the content stream to the specified output stream.
(Inherited from MimeContent.)
Top
Remarks
A MimeContent represents the content of a MimePart. The content has both a stream and an encoding (typically Default).
See Also