Condividi tramite


Proprietà AttachmentType.ContentType

Aggiornamento: novembre 2007

Questa API supporta l'infrastruttura .NET Framework e non deve essere utilizzata direttamente dal codice.

Ottiene o imposta un valore che descrive il tipo MIME del contenuto dell'allegato.

Spazio dei nomi:  Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007
Assembly:  Microsoft.ServiceModel.Channels.Mail.ExchangeWebService (in Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.dll)

Sintassi

'Dichiarazione
Public Property ContentType As String
'Utilizzo
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);
}
public function get ContentType () : String
public function set ContentType (value : String)

Valore proprietà

Tipo: System.String

Tipo di contenuto dell'allegato.

Note

Di seguito sono riportati alcuni esempi di stringhe che è possibile impostare su questa proprietà:

  • text/plain

  • text/xml

  • application/octet-stream

  • multipart/mixed

  • image/jpeg

Autorizzazioni

Piattaforme

Windows CE, Windows Mobile per Smartphone, Windows Mobile per Pocket PC

.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.

Informazioni sulla versione

.NET Compact Framework

Supportato in: 3.5

Vedere anche

Riferimenti

AttachmentType Classe

Membri AttachmentType

Spazio dei nomi Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.Exchange2007