ContentDisposition Constructor
Collapse the table of content
Expand the table of content

ContentDisposition Constructor ()

 

Initializes a new instance of the ContentDisposition class with a DispositionType of Attachment.

Namespace:   System.Net.Mime
Assembly:  System (in System.dll)

public ContentDisposition()

The instance returned by this constructor has the DispositionType property set to Attachment.

The following code example demonstrates how to call this constructor.

ContentDisposition c1 = new ContentDisposition();
Console.WriteLine(c1.ToString());

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft