Поделиться через


Server.EnumMembers Method

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

Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
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

Параметры

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

Возвращаемое значение

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

Замечания

Изменения текста

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

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Синхронизация потоков

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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

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

Другие ресурсы

How to: Use an SMO Method with a Parameter in Visual Basic .NET
Calling Methods
Управление серверами