ListMembers Method (Login, User)
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The ListMembers method returns a NameList object that enumerates the Microsoft SQL Server database roles in which a database user has membership, or the server roles in which a login has membership.
Syntax
object
.ListMembers( )
as
NameList
Parts
- object
Expression that evaluates to an object in the Applies To list.
Prototype (C/C++)
HRESULT ListMembers(
LPSQLDMONAMELIST* ppList);
Returns
A NameList object that enumerates system and user-defined security roles.