Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Associates a security principal with the referenced mail profile.
Namespace: Microsoft.SqlServer.Management.Smo.Mail
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub AddPrincipal ( _
principalName As String _
)
'Usage
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
)
Parameter
- principalName
Typ: System.String
A String value that specifies the name of the security principal.
Hinweise
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.
Beispiele
Verwenden von Datenbank-E-Mail
Siehe auch
Verweis
Microsoft.SqlServer.Management.Smo.Mail-Namespace