다음을 통해 공유


EnumRoles 메서드

Returns a list of the roles that the referenced database role is a member of.

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

구문

‘선언
Public Function EnumRoles As StringCollection
‘사용 방법
Dim instance As DatabaseRole
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 contains the roles that the referenced database role is a member of.

예제

스크립팅