The ListMembers method returns a NameList object enumerating the Microsoft® SQL Server™ database roles in which a database user has membership, or the server roles in which a login has membership.
Login Object | User Object |
object.ListMembers( ) as NameList
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
A NameList object enumerating system and user-defined security roles.
HRESULT ListMembers(
LPSQLDMONAMELIST* ppList);