Compartilhar via


ListMembers Method (Login, User)

Esse recurso será removido em uma versão futura do Microsoft SQL Server. Evite usar esse recurso em desenvolvimentos novos e planeje modificar os aplicativos que atualmente o utilizam.

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.

Sintaxe

object.ListMembers( )asNameList

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.