Login.IsMember 메서드

Returns a Boolean value that specifies whether the login account is a member of a specified role.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Function IsMember ( _
    role As String _
) As Boolean
‘사용 방법
Dim instance As Login 
Dim role As String 
Dim returnValue As Boolean 

returnValue = instance.IsMember(role)
public bool IsMember(
    string role
)
public:
bool IsMember(
    String^ role
)
member IsMember : 
        role:string -> bool
public function IsMember(
    role : String
) : boolean

매개 변수

반환 값

유형: System.Boolean
A Boolean value that specifies whether the login account is a member of the specified role or not.If True, the login account is a member of the specified role.If False, the login account is not a member of the specified role.

사용자, 역할 및 로그인 관리

참고 항목

참조

Login 클래스

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

관련 자료

보안 주체(데이터베이스 엔진)

CREATE LOGIN(Transact-SQL)