次の方法で共有


_Account.SmtpAddress Property

Returns a String (string in C#) representing the Simple Mail Transfer Protocol (SMTP) address for the Account. Read-only.

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

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property SmtpAddress As String
    Get
'Usage
Dim instance As _Account
Dim value As String

value = instance.SmtpAddress
[DispIdAttribute()]
string SmtpAddress { get; }

Property Value

Type: System.String

Remarks

The purpose of SmtpAddress and _Account.UserName is to provide an account-based context to determine identity.

If the account does not have an SMTP address, SmtpAddress returns an empty string.

See Also

Reference

_Account Interface

_Account Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Get Account Information

How to: Get Information About Multiple Accounts

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