次の方法で共有


MailEnvelope2.Intro プロパティ

電子メール メッセージの本文の紹介文を取得または設定します。

このプロパティは、CLS に準拠していません。  

名前空間: Microsoft.Office.Interop.InfoPath.SemiTrust
アセンブリ: Microsoft.Office.Interop.InfoPath.SemiTrust (microsoft.office.interop.infopath.semitrust.dll 内)

構文

'宣言
<DispIdAttribute(7)> _
Property Intro As String
'使用
Dim instance As MailEnvelope2
Dim value As String

value = instance.Intro

instance.Intro = value
[DispIdAttribute(7)] 
string Intro { get; set; }

プロパティ値

電子メール メッセージの本文の紹介文。

コメント

Intro プロパティは、Microsoft Office InfoPath 2007 の新しい機能なので、このメソッドにアクセスするには、宣言して MailEnvelope2 型にキャストする必要があります。詳細については、「[方法] InfoPath 2003 と互換性のない Microsoft.Office.Interop.InfoPath.SemiTrust のメンバを使用する方法」を参照してください。

次の例では、MailEnvelope2 オブジェクトへの参照を設定し、封筒のプロパティを設定して、電子メールの封筒を表示します。

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.";

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

関連項目

参照

MailEnvelope2 インターフェイス
MailEnvelope2 のメンバ
Microsoft.Office.Interop.InfoPath.SemiTrust 名前空間