Share via


AttachmentType.ContentType Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Gets or sets a value that describes the MIME type of the attachment content.

Namespace:  Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007
Assembly:  Microsoft.ServiceModel.Channels.Mail.ExchangeWebService (in Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.dll)

Syntax

'Declaration
Public Property ContentType As String
    Get
    Set
'Usage
Dim instance As AttachmentType
Dim value As String

value = instance.ContentType

instance.ContentType = value
public string ContentType { get; set; }
public:
property String^ ContentType {
    String^ get ();
    void set (String^ value);
}
member ContentType : string with get, set

Property Value

Type: System.String
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

.NET Framework Security

Platforms

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Compact Framework

Supported in: 3.5

See Also

Reference

AttachmentType Class

AttachmentType Members

Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007 Namespace