System.Net.Mime.ContentDisposition.FileName Property

Gets or sets the suggested file name for an e-mail attachment.

Syntax

public string FileName { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The ContentDisposition.FileName property allows the sender to suggest the name to be used to store an e-mail attachment on the recipient's computer. This name is a suggestion only; the receiving system can ignore it. The name must not include path information; any such information is ignored by the receiving computer.

To remove file name information, you can set this property to null or the empty string ("").

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