共用方式為


MailProfile.EnumAccounts 方法

Returns an enumerated list of email accounts associated with the referenced mail profile.

命名空間:  Microsoft.SqlServer.Management.Smo.Mail
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Function EnumAccounts As DataTable
'用途
Dim instance As MailProfile 
Dim returnValue As DataTable 

returnValue = instance.EnumAccounts()
public DataTable EnumAccounts()
public:
DataTable^ EnumAccounts()
member EnumAccounts : unit -> DataTable
public function EnumAccounts() : DataTable

傳回值

型別:System.Data.DataTable
A DataTable object value that contains a table of information about e-mail accounts that are associated with the referenced mail profile.

範例

使用 Database Mail

請參閱

參考

MailProfile 類別

Microsoft.SqlServer.Management.Smo.Mail 命名空間

其他資源

Database Mail