次の方法で共有


_MailItem.SendUsingAccount Property

Returns or sets an Account object that represents the account under which the MailItem is to be sent. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property SendUsingAccount As Account
    Get
    Set
'Usage
Dim instance As _MailItem
Dim value As Account

value = instance.SendUsingAccount

instance.SendUsingAccount = value
[DispIdAttribute()]
Account SendUsingAccount { get; set; }

Property Value

Type: Microsoft.Office.Interop.Outlook.Account

Remarks

The SendUsingAccount property can be used to specify the account that should be used to send the MailItem when the Send method is called. This property returns Nothing (a null reference (Nothing in Visual Basic) in C#) if the account specified for the MailItem no longer exists.

See Also

Reference

_MailItem Interface

_MailItem Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Send a Mail Item by Using a Hotmail Account

How to: Send an E-Mail Given the SMTP Address of an Account

How to: Send a Mail Item by Using a Hotmail Account