次の方法で共有


View.ShowMailItem メソッド

現在のビューが入った電子メール メッセージを作成します。

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

構文

'宣言
Public MustOverride Sub ShowMailItem ( _
    destinationTo As String, _
    destinationCC As String, _
    destinationBcc As String, _
    subject As String, _
    body As String _
)
'使用
Dim instance As View
Dim destinationTo As String
Dim destinationCC As String
Dim destinationBcc As String
Dim subject As String
Dim body As String

instance.ShowMailItem(destinationTo, destinationCC, destinationBcc, subject, body)
public abstract void ShowMailItem (
    string destinationTo,
    string destinationCC,
    string destinationBcc,
    string subject,
    string body
)

パラメータ

  • destinationTo
    電子メール メッセージの "宛先" フィールドのアドレス。
  • destinationCC
    電子メール メッセージの CC フィールドのアドレス。
  • destinationBcc
    電子メール メッセージの BCC フィールドのアドレス。
  • subject
    電子メール メッセージの "件名" フィールド。
  • body
    電子メール メッセージの本文のテキスト。

例外処理

例外の種類 条件

ArgumentNullException

このメソッドに渡されたパラメータは null です。

ArgumentException

このメソッドに渡されたパラメータは有効ではありません。たとえば、型または形式が正しくありません。

コメント

このメンバは、現在開いているフォームと同じドメイン内で実行されているフォーム、またはドメインを越えたアクセス許可を付与されているフォームだけがアクセスできます。

この型またはメンバは、Microsoft Office InfoPath 2007 で開いているフォームで実行されているコードからのみアクセスできます。

次の例では、View クラスの ShowMailItem メソッドを使用して、現在のビューのメール メッセージを作成しています。

this.CurrentView,ShowMailItem("someone@example.com", null, null,
    "Sample InfoPath Form", "This is a sample InfoPath form.");
Me.CurrentView,ShowMailItem("someone@example.com", String.Empty, _
   String.Empty, "Sample InfoPath Form", 
   "This is a sample InfoPath form.");

関連項目

参照

View クラス
View のメンバ
Microsoft.Office.InfoPath 名前空間