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 = gcnew ContentDisposition;
Console::WriteLine( c1 );

.NET Framework
Available since 2.0
Return to top
Show: