MimeContentDisposition Class
The value of a Content-Disposition header ([RFC 2183]): inline or attachment, and parameters such as the file name.
public sealed class MimeContentDispositionConstructors
| Name | Description |
|---|---|
| MimeContentDisposition(string) | Initializes a new instance of the MimeContentDisposition class. |
MimeContentDisposition(string)
MimeContentDisposition.csInitializes a new instance of the MimeContentDisposition class.
public MimeContentDisposition(string disposition)Parameters
dispositionstring- The disposition, such as
MimeContentDisposition.Attachment.
Properties
| Name | Description |
|---|---|
| Disposition | Gets or sets the disposition, such as inline or attachment. |
| FileName | Gets or sets the file name. |
| IsAttachment | Gets whether the disposition is attachment. |
| Parameters | Gets the parameters, with case-insensitive names. |
Disposition
MimeContentDisposition.csFileName
MimeContentDisposition.csIsAttachment
MimeContentDisposition.csParameters
MimeContentDisposition.csGets the parameters, with case-insensitive names.
public IDictionary<string, string> Parameters { get; }Property value
Methods
| Name | Description |
|---|---|
| Parse(string) | Parses the value of a Content-Disposition header. |
| ToString() | Returns the value of the header. |
Parse(string)
MimeContentDisposition.csParses the value of a Content-Disposition header.
public static MimeContentDisposition Parse(string value)ToString()
MimeContentDisposition.csConstants
| Name | Description |
|---|---|
| Attachment | The disposition of a part the user saves or opens. |
| Inline | The disposition of a part shown in the body of the message. |
Attachment
The disposition of a part the user saves or opens.
public const string Attachment = "attachment"Inline
The disposition of a part shown in the body of the message.
public const string Inline = "inline"