Метод AddPrincipal (String)
Associates a security principal with the referenced mail profile.
Пространство имен: Microsoft.SqlServer.Management.Smo.Mail
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Sub AddPrincipal ( _
principalName As String _
)
'Применение
Dim instance As MailProfile
Dim principalName As String
instance.AddPrincipal(principalName)
public void AddPrincipal(
string principalName
)
public:
void AddPrincipal(
String^ principalName
)
member AddPrincipal :
principalName:string -> unit
public function AddPrincipal(
principalName : String
)
Параметры
- principalName
Тип: System. . :: . .String
A String value that specifies the name of the security principal.
Замечания
A principal refers to a database user, a database role or server role, an application role, or a SQL Server login. You can add these types of users to the mail profile.
См. также