ListMembers Method (Login, User) (SQL-DMO)

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.

Applies To
Login Object User Object

Syntax

object.ListMembers( ) as NameList

Part Description
object Expression that evaluates to an object in the Applies To list

Returns

A NameList object enumerating system and user-defined security roles.

Prototype (C/C++)

HRESULT ListMembers(
LPSQLDMONAMELIST* ppList);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.