Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets an Email object that contains all the e-mail–related properties of the document.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property Email As Email
'Usage
Dim instance As Document
Dim value As Email
value = instance.Email
[BrowsableAttribute(false)]
public Email Email { get; }
[BrowsableAttribute(false)]
public:
property Email^ Email {
Email^ get ();
}
public function get Email () : Email
Property Value
Type: Email
An Email object that contains all the e-mail–related properties of the document.
Examples
The following code example displays the name of the style associated with the current e-mail author. This code assumes that the document is an unsent forward, reply, or new e-mail message.
This example is for a document-level customization.
Private Sub DocumentEmail()
MessageBox.Show(Me.Email.CurrentEmailAuthor.Style.NameLocal)
End Sub
private void DocumentEmail()
{
MessageBox.Show(this.Email.CurrentEmailAuthor.Style.NameLocal);
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.