共用方式為


AddPrincipal 方法 (String)

命名空間:  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
)

參數