MailProfile.AddAccount 方法
Associates a mail account with the referenced mail profile.
命名空间: Microsoft.SqlServer.Management.Smo.Mail
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Sub AddAccount ( _
accountName As String, _
sequenceNumber As Integer _
)
用法
Dim instance As MailProfile
Dim accountName As String
Dim sequenceNumber As Integer
instance.AddAccount(accountName, sequenceNumber)
public void AddAccount(
string accountName,
int sequenceNumber
)
public:
void AddAccount(
String^ accountName,
int sequenceNumber
)
member AddAccount :
accountName:string *
sequenceNumber:int -> unit
public function AddAccount(
accountName : String,
sequenceNumber : int
)
参数
- accountName
类型:System.String
A String value that specifies the name of the mail account.
- sequenceNumber
类型:System.Int32
An Int32 value that specifies the sequence number of the mail account for the referenced profile.
示例
请参阅
参考
Microsoft.SqlServer.Management.Smo.Mail 命名空间