다음을 통해 공유


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
    형식: System.String
    전자 메일 메시지의 받는 사람 필드에 입력할 주소입니다.
  • destinationCC
    형식: System.String
    전자 메일 메시지의 참조 필드에 입력할 주소입니다.
  • destinationBcc
    형식: System.String
    전자 메일 메시지의 숨은 참조 필드에 입력할 주소입니다.
  • subject
    형식: System.String
    전자 메일 메시지의 제목 필드입니다.
  • body
    형식: System.String
    전자 메일 메시지의 본문 텍스트입니다.

예외

예외 조건
ArgumentNullException

이 메서드에 전달된 매개 변수가 Null 참조(Visual Basic의Nothing )입니다.

ArgumentException

이 메서드에 전달된 매개 변수가 유효하지 않습니다. 예를 들면 유형이나 형식이 잘못되었습니다.

주의

이 멤버는 현재 열려 있는 양식과 같은 도메인에서 실행하는 양식 또는 도메인 간 권한이 부여된 양식에서만 액세스할 수 있습니다.

이 형식 또는 멤버는 Microsoft InfoPath Filer에서 연 양식에서 실행되는 코드에서만 액세스할 수 있습니다.

다음 예제에서는 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 네임스페이스