Condividi tramite


Proprietà MailEnvelope2.AttachmentType

Ottiene o imposta il tipo di file da allegare al messaggio di posta elettronica.

Spazio dei nomi: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)

Sintassi

<DispIdAttribute(6)> _
Property AttachmentType As XdAttachmentType

Dim instance As MailEnvelope2
Dim value As XdAttachmentType

value = instance.AttachmentType

instance.AttachmentType = value
[DispIdAttribute(6)] 
XdAttachmentType AttachmentType { get; set; }

Valore proprietà

XdAttachmentType che specifica il tipo di file allegato al messaggio di posta elettronica.

Osservazioni

Impostare il valore su XdAttachmentType.xdXml per inviare solo il file del modulo, con estensione xml. Impostare il valore su XdAttachmentType.xdXmlXsn per inviare il file del modulo, con estensione xml, insieme al file del modello di modulo associatos, con estensione xsn.

Esempio

Nell'esempio seguente viene impostato un riferimento all'oggetto MailEnvelope2, vengono impostate le proprietà del messaggio di posta elettronica e il messaggio viene quindi visualizzato.

MailEnvelope2 myEnv = 
   (MailEnvelope2)thisApplication.ActiveWindow.MailEnvelope;
myEnv.To = "someone@example.com";
myEnv.CC = "someone@example.com";
myEnv.BCC = "someone@example.com";
myEnv.Subject = "Test e-mail message";
myEnv.Intro = "This is the InfoPath form you requested.";
myEnv.AttachmentType = XdAttachmentType.xdXmlXsn;

// Display form with e-mail envelope.
myEnv.Visible = true;

Vedere anche

Riferimenti

Interfaccia MailEnvelope2
Membri MailEnvelope2
Spazio dei nomi Microsoft.Office.Interop.InfoPath