Server.EnumMembers(RoleTypes) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.