Share via


ServerRole.EnumServerRoleMembers Method

Note: This API is now obsolete.

Enumerates a list of members of the fixed server role. This method is deprecated. Use EnumMemberNames() instead.

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

Syntax

'Declaration
<ObsoleteAttribute> _
Public Function EnumServerRoleMembers As StringCollection
'Usage
Dim instance As ServerRole 
Dim returnValue As StringCollection 

returnValue = instance.EnumServerRoleMembers()
[ObsoleteAttribute]
public StringCollection EnumServerRoleMembers()
[ObsoleteAttribute]
public:
StringCollection^ EnumServerRoleMembers()
[<ObsoleteAttribute>]
member EnumServerRoleMembers : unit -> StringCollection
public function EnumServerRoleMembers() : StringCollection

Return Value

Type: System.Collections.Specialized.StringCollection
A StringCollection system object value that contains an enumerated list of information about the members of the fixed server role.

Examples

Managing Users, Roles, and Logins

See Also

Reference

ServerRole Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Permissions of Fixed Server Roles (Database Engine)

sp_addsrvrolemember (Transact-SQL)