User.EnumRoles 메서드

Enumerates a list of roles of which the database user is a member.

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

구문

‘선언
Public Function EnumRoles As StringCollection
‘사용 방법
Dim instance As User 
Dim returnValue As StringCollection 

returnValue = instance.EnumRoles()
public StringCollection EnumRoles()
public:
StringCollection^ EnumRoles()
member EnumRoles : unit -> StringCollection
public function EnumRoles() : StringCollection

반환 값

유형: System.Collections.Specialized.StringCollection
A StringCollection system object value that specifies the roles of which the database is a member.

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

참고 항목

참조

User 클래스

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

관련 자료

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

CREATE USER(Transact-SQL)