The Attachment type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkAttachment()()()()
Initializes a new empty instance of a Attachment.
Public methodSupported by the .NET Compact FrameworkAttachment(String)
Initializes a new instance of a Attachment with the content of the specified file.
Public methodSupported by the .NET Compact FrameworkAttachment(MailMessage)
Initializes a new instance of a Attachment that represents an attached e-mail message.
Public methodSupported by the .NET Compact FrameworkAttachment(array<Byte>[]()[][], String)
Initializes a new instance of a Attachment with the content of the supplied byte array and with suggested name.
Public methodSupported by the .NET Compact FrameworkAttachment(Stream, String)
Initializes a new instance of a Attachment with the content of the supplied stream and with suggested name.
Public methodSupported by the .NET Compact FrameworkAttachment(String, String)
Initializes a new instance of a Attachment with the content of the specified file and with a suggested name.
Public methodSupported by the .NET Compact FrameworkAttachment(array<Byte>[]()[][], String, String)
Initializes a new instance of a Attachment with the content of the supplied byte array and with a media type and suggested name.
Public methodSupported by the .NET Compact FrameworkAttachment(Stream, String, String)
Initializes a new instance of a Attachment with the content of the supplied stream and with a media type and suggested name.
Public methodSupported by the .NET Compact FrameworkAttachment(String, String, String)
Initializes a new instance of a Attachment with the content of the specified file and with a media type and suggested name.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetContentLength
Gets the length of the attachment.
(Inherited from AttachmentBase.)
Public methodSupported by the .NET Compact FrameworkGetContentStream()()()()
Returns the read-only stream representing a content of this attachment.
(Inherited from AttachmentBase.)
Public methodSupported by the .NET Compact FrameworkGetContentStream(Boolean)
Returns the stream representing a content of this attachment.
(Inherited from AttachmentBase.)
Public methodSupported by the .NET Compact FrameworkGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSave(Stream)
Writes the content of the attachment into the supplied stream.
(Inherited from AttachmentBase.)
Public methodSupported by the .NET Compact FrameworkSave(String)
Writes the content of the attachment or view into a supplied file.
(Inherited from AttachmentBase.)
Public methodSupported by the .NET Compact FrameworkSetContent(String)
Sets the content of this attachment to the specified text.
(Inherited from AttachmentBase.)
Public methodSupported by the .NET Compact FrameworkSetContent(Stream, String)
Sets the content of this attachment to data read from the specified stream and sets file name.
Public methodSupported by the .NET Compact FrameworkSetContent(String, String)
Sets the content of this attachment to the specified text and media type.
(Inherited from AttachmentBase.)
Public methodSupported by the .NET Compact FrameworkSetContent(Stream, String, String)
Sets the content of this attachment to data read from the specified stream and sets media type and file name.
Public methodSupported by the .NET Compact FrameworkSetContent(String, String, Encoding)
Sets the content of this attachment to the specified text, media type and character set.
(Inherited from AttachmentBase.)
Public methodSupported by the .NET Compact FrameworkSetContent(String, String, Encoding, TransferEncoding)
Sets the content of this attachment to the specified text, media type and character set.
(Inherited from AttachmentBase.)
Public methodSupported by the .NET Compact FrameworkSetContentFromFile(String)
Sets the content of this attachment to data read from the specified file.
Public methodSupported by the .NET Compact FrameworkSetContentFromFile(String, String)
Sets the content of this attachment to data read from the specified file and sets file name.
Public methodSupported by the .NET Compact FrameworkSetContentFromFile(String, String, String)
Sets the content of this attachment to data read from the specified file and sets media type and file name.
Public methodSupported by the .NET Compact FrameworkToMimeEntity
Converts this instance to a MimeEntity.
(Inherited from AttachmentBase.)
Public methodSupported by the .NET Compact FrameworkToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkContentDescription
Gets or sets the content description of this attachment.
(Inherited from AttachmentBase.)
Public propertySupported by the .NET Compact FrameworkContentDisposition
Gets the content disposition of this attachment.
(Inherited from AttachmentBase.)
Public propertySupported by the .NET Compact FrameworkContentId
Gets or sets the content ID of this attachment.
(Inherited from AttachmentBase.)
Public propertySupported by the .NET Compact FrameworkContentLocation
Gets or sets the absolute or relative URI of this message part.
(Inherited from AttachmentBase.)
Public propertySupported by the .NET Compact FrameworkContentMessage
Gets the inner message of this attachment if it is an attached message of "message/rfc822" content type.
Public propertySupported by the .NET Compact FrameworkContentString
Gets the content string of this attachment.
(Inherited from AttachmentBase.)
Public propertySupported by the .NET Compact FrameworkContentType
Gets the content type of this attachment.
(Inherited from AttachmentBase.)
Public propertySupported by the .NET Compact FrameworkDisplayName
Gets the suggested display name of this attachment.
Public propertySupported by the .NET Compact FrameworkFileName
Gets or sets the file name of this attachment.
Public propertySupported by the .NET Compact FrameworkCharset
Gets the charset (Encoding) of the content of this attachment.
(Inherited from AttachmentBase.)
Public propertySupported by the .NET Compact FrameworkMediaType
Gets the media type of this attachment.
(Inherited from AttachmentBase.)
Public propertySupported by the .NET Compact FrameworkOptions
Gets or sets verious options for MIME parser and writer.
(Inherited from AttachmentBase.)
Public propertySupported by the .NET Compact FrameworkTransferEncoding
Gets or sets the TransferEncoding of the content of this attachment.
(Inherited from AttachmentBase.)

See Also