Database.IsMember Method
SQL Server 2012
Determines whether the specified group or role belongs to the database.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
'Declaration Public Function IsMember ( _ groupOrRole As String _ ) As Boolean 'Usage Dim instance As Database Dim groupOrRole As String Dim returnValue As Boolean returnValue = instance.IsMember(groupOrRole)
Parameters
- groupOrRole
- Type: System.String
A String value that specifies the name of the group or role.
Return Value
Type: System.BooleanA Boolean value that specifies whether the specified group or role is associated with the database.If True, the specified group or role belongs to the database.If False, the specified group or role does not belong to the database.
