Export (0) Print
Expand All

Server.EnumMembers Method

Enumerates a list of members of server roles and database roles on the instance of Microsoft SQL Server.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

public StringCollection EnumMembers (
	RoleTypes roleType
)
public StringCollection EnumMembers (
	RoleTypes roleType
)
public function EnumMembers (
	roleType : RoleTypes
) : StringCollection

Parameters

roleType

A RoleTypes object value that specifies the type of role of which to limit the results.

Return Value

A StringCollection object value that contains a list of members and the roles to which they belong.

Updated text:

Use this method to obtain a list of the members of server roles, database roles, or both.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.


Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Release

History

New content:
  • Added to the description in the Remarks section.

Community Additions

ADD
Show:
© 2014 Microsoft