Share via


Server.EnumMembers(RoleTypes) Method

Definition

Returns a list of server or database roles in which the currently connected login is a member.

public System.Collections.Specialized.StringCollection EnumMembers(Microsoft.SqlServer.Management.Smo.RoleTypes roleType);
member this.EnumMembers : Microsoft.SqlServer.Management.Smo.RoleTypes -> System.Collections.Specialized.StringCollection
Public Function EnumMembers (roleType As RoleTypes) As StringCollection

Parameters

roleType
RoleTypes

The type of role being queried.

Returns

Remarks

RoleTypes.Server has no meaning for Azure SQL Database connections and will be ignored in that case.

Applies to