共用方式為


AddPrincipal 方法 (String, Boolean)

命名空間:  Microsoft.SqlServer.Management.Smo.Mail
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub AddPrincipal ( _
    principalName As String, _
    isDefaultProfile As Boolean _
)
'用途
Dim instance As MailProfile
Dim principalName As String
Dim isDefaultProfile As Boolean

instance.AddPrincipal(principalName, _
    isDefaultProfile)
public void AddPrincipal(
    string principalName,
    bool isDefaultProfile
)
public:
void AddPrincipal(
    String^ principalName, 
    bool isDefaultProfile
)
member AddPrincipal : 
        principalName:string * 
        isDefaultProfile:bool -> unit 
public function AddPrincipal(
    principalName : String, 
    isDefaultProfile : boolean
)

參數