/
MailEnvelopeObject.xml
45 lines (45 loc) · 4.36 KB
/
MailEnvelopeObject.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<Type Name="MailEnvelopeObject" FullName="Microsoft.Office.Interop.InfoPath.SemiTrust.MailEnvelopeObject">
<TypeSignature Language="C#" Value="public interface MailEnvelopeObject : Microsoft.Office.Interop.InfoPath.SemiTrust.MailEnvelope" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract MailEnvelopeObject implements class Microsoft.Office.Interop.InfoPath.SemiTrust.MailEnvelope" />
<TypeSignature Language="DocId" Value="T:Microsoft.Office.Interop.InfoPath.SemiTrust.MailEnvelopeObject" />
<TypeSignature Language="VB.NET" Value="Public Interface MailEnvelopeObject
Implements MailEnvelope" />
<TypeSignature Language="C++ CLI" Value="public interface class MailEnvelopeObject : Microsoft::Office::Interop::InfoPath::SemiTrust::MailEnvelope" />
<TypeSignature Language="F#" Value="type MailEnvelopeObject = interface
 interface MailEnvelope" />
<AssemblyInfo>
<AssemblyName>Microsoft.Office.Interop.InfoPath.SemiTrust</AssemblyName>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Microsoft.Office.Interop.InfoPath.SemiTrust.MailEnvelope</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.CoClass(typeof(Microsoft.Office.Interop.InfoPath.SemiTrust.MailEnvelopeObjectWrapper))</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.Runtime.InteropServices.Guid("096cd588-0786-11d1-95fa-0080c78ee3bb")</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Represents a custom e-mail message in an InfoPath form.</summary>
<remarks>
<para>This type is a wrapper for a coclass that is required by managed code for COM interoperability. Use this type to access the members of the COM interface implemented by this coclass. For information about the COM interface, including a link to descriptions of its members, see<see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.MailEnvelope" />.</para>
<para>Using the members of the <b>MailEnvelope</b> interface provides compatibility with InfoPath 2003. To use new members that were added to the <b>MailEnvelope2</b> object model in InfoPath 2010, you must cast the object returned by the <see cref="P:Microsoft.Office.Interop.InfoPath.SemiTrust.Window2.MailEnvelope" /> property of the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.WindowObject" /> to the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.MailEnvelope2" /> type. For more information, see How to: Use Object Model Members That Are Not Compatible with InfoPath 2003.</para>
<para>The <b>MailEnvelope</b> object provides a number of properties that can be used to programmatically create a custom e-mail message within the default e-mail editor, and it attaches the currently open InfoPath form to the message.</para>
<para>After the e-mail message is created, the default e-mail editor will display the e-mail message; users can then inspect and edit the e-mail message before sending it.</para>
<para>
<b>Note</b>: The <b>MailEnvelope</b> object cannot be used to send the e-mail messages it creates; users must manually send the e-mail messages.</para>
<para>You can also use the <see cref="M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI2.ShowMailItem(System.String,System.String,System.String,System.String,System.String)" /> method to programmatically create e-mail messages; users must manually send the e-mail messages.</para>
<para>You can also use the <see cref="M:Microsoft.Office.Interop.InfoPath.SemiTrust.UI2.ShowMailItem(System.String,System.String,System.String,System.String,System.String)" /> method of the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.UIObject" /> object to programmatically create e-mail messages.</para>
<para />
</remarks>
<example>
<para>In the following example, the <see cref="P:Microsoft.Office.Interop.InfoPath.SemiTrust.Window2.MailEnvelope" /> property of the <see cref="T:Microsoft.Office.Interop.InfoPath.SemiTrust.WindowObject" /> object is used to set a reference to the <b>MailEnvelope</b> object.</para>
<code><span class="label">MailEnvelopeObject</span> myEnv = thisApplication.ActiveWindow.<span class="label">MailEnvelope</span>;
myEnv.Visible = true;</code>
</example>
</Docs>
<Members />
</Type>