MailEnvelope2.Intro 属性

定义

获取或设置电子邮件正文中的介绍。

public:
 property System::String ^ Intro { System::String ^ get(); void set(System::String ^ value); };
public string Intro { get; set; }
member this.Intro : string with get, set
Public Property Intro As String

属性值

电子邮件正文中的介绍。

示例

以下示例设置对 MailEnvelope2 对象的引用,设置信封属性,然后显示电子邮件信封。

MailEnvelope2 myEnv = 
   (MailEnvelope2)thisApplication.ActiveWindow.MailEnvelope;
myEnv.To = "someone@example.com";
myEnv.<span class="label">CC</span> = "someone@example.com";
myEnv.BCC = "someone@example.com";
myEnv.Subject = "Test e-mail message";
myEnv.<span class="label">Intro</span> = "This is the InfoPath form you requested.";

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

注解

由于 Intro 属性是 Microsoft InfoPath 的新增属性,因此必须声明并强制转换为 MailEnvelope2 类型才能访问此属性。 有关详细信息,请参阅如何:使用与 InfoPath 2003 不兼容的对象模型成员。

适用于