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)

Syntax

'Declaration
Public Function EnumMembers ( _
    roleType As RoleTypes _
) As StringCollection
public StringCollection EnumMembers (
    RoleTypes roleType
)
public:
StringCollection^ EnumMembers (
    RoleTypes roleType
)
public StringCollection EnumMembers (
    RoleTypes roleType
)
public function EnumMembers (
    roleType : RoleTypes
) : StringCollection

Parameter

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

Rückgabewert

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

Hinweise

Aktualisierter Text:

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

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Threadsicherheit

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.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace

Andere Ressourcen

How to: Use an SMO Method with a Parameter in Visual Basic .NET
Calling Methods
Verwalten von Servern