MailProfile 屬性
取得或設定 SQL Server 執行個體的郵件設定檔。
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property MailProfile As String
Get
Set
'用途
Dim instance As Settings
Dim value As String
value = instance.MailProfile
instance.MailProfile = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string MailProfile { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ MailProfile {
String^ get ();
void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member MailProfile : string with get, set
function get MailProfile () : String
function set MailProfile (value : String)
屬性值
型別:System. . :: . .String
指定 SQL Server 執行個體之郵件設定檔名稱的 String 值。
備註
The mail profile enables SQL Server Agent to send and receive e-mails.