MailProfile.AddPrincipal 메서드 (String, Boolean)

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, _
    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
)

매개 변수

  • principalName
    유형: System.String
    A String value that specifies the name of the security principal.
  • isDefaultProfile
    유형: System.Boolean
    A Boolean value that specifies whether the referenced profile is set as the default profile for the principal. If True, the referenced profile is the default profile for the principal.If False, the referenced profile is not the default profile for the 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.

데이터베이스 메일 사용

참고 항목

참조

MailProfile 클래스

AddPrincipal 오버로드

Microsoft.SqlServer.Management.Smo.Mail 네임스페이스

관련 자료

데이터베이스 메일