Edit

Share via


AttachmentType.ContentType Property

Definition

The ContentType property gets or sets a value that describes the Multipurpose Internet Mail Extensions (MIME) type of the attachment content.

public:
 property System::String ^ ContentType { System::String ^ get(); void set(System::String ^ value); };
public string ContentType { get; set; }
Public Property ContentType As String

Property Value

The ContentType property returns a string value that represents the content type of the attachment.

Remarks

The following are some examples of strings that you can set on this property:

  • text/plain
  • text/xml
  • application/octet-stream
  • multipart/mixed
  • image/jpeg

Note: This is not an exclusive list.

Applies to