ListMembers Method (Login, User)
Dieses Feature wird in einer zukünftigen Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.
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.