Represents a MIME protocol Content-Disposition header.
Assembly: System (in System.dll)
Gets or sets the creation date for a file attachment.
Gets or sets the disposition type for an e-mail attachment.
Gets or sets the suggested file name for an e-mail attachment.
Gets or sets a Boolean value that determines the disposition type (Inline or Attachment) for an e-mail attachment.
Gets or sets the modification date for a file attachment.
Gets the parameters included in the Content-Disposition header represented by this instance.
Gets or sets the read date for a file attachment.
Gets or sets the size of a file attachment.
Determines whether the content-disposition header of the specified Object.Equals(Object).)object is equal to the content-disposition header of this object.(Overrides
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Determines the hash code of the specified Object.GetHashCode().)object(Overrides
The information in theclass accompanies an e-mail message that contains attachments when the e-mail message is sent to its destination. The information in can be used by software that displays e-mail to present the e-mail attachments in the manner intended by the sender.
E-mail messages are created using instances of the MailMessage class. Instances of the Attachment class are used to add attachments to e-mail messages. To modify the for an attachment, get the instance from the Attachment.ContentDisposition property.
Content to be displayed as part of the message body has the disposition type of Inline. Content that is not displayed but is attached in a separate file has the disposition type of Attachment. Use the Inline property to control the disposition type for the attachment associated with an instance of .
For file attachments, you can use the properties of theto set the file size, as well as the date the file was created, last read, and last modified. For all attachments, you can set a recommended file name in the event that the attachment is stored on the receiving computer.
Available since 2.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.