System.Net.Mime.ContentDisposition.CreationDate Property

Gets or sets the creation date for a file attachment.

Syntax

public DateTime CreationDate { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The ContentDisposition.CreationDate property is used to send time stamp information with a file being sent in an e-mail message. This value sets the Creation-Date parameter in the Content-Disposition header sent with the email.

The System.Net.Mail.MailMessage class is used to compose an e-mail message. The System.Net.Mail.Attachment class is used to attach a file to an e-mail message. To set ContentDisposition.CreationDate, get the System.Net.Mime.ContentDisposition for the attachment from the System.Net.Mail.Attachment.ContentDisposition property.

The Content-Disposition header is described in RFC 2183 available at tp://www.ietf.org/.

Requirements

Namespace: System.Net.Mime
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0