Database.IsMember 메서드

Determines whether the specified group or role belongs to the database.

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

구문

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

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

매개 변수

  • groupOrRole
    유형: System.String
    A String value that specifies the name of the group or role.

반환 값

유형: System.Boolean
A Boolean value that specifies whether the specified group or role is associated with the database.If True, the specified group or role belongs to the database.If False, the specified group or role does not belong to the database.

참고 항목

참조

Database 클래스

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

관련 자료

데이터베이스 개체 작업

권한 부여, 취소 및 거부

데이터베이스 생성, 변경 및 제거

CREATE DATABASE(Transact-SQL)