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


Метод IsMember

Determines whether the specified group or role belongs to the database.

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

Синтаксис

'Декларация
Public Function IsMember ( _
    groupOrRole As String _
) As Boolean
'Применение
Dim instance As Database
Dim groupOrRole As String
Dim returnValue As Boolean

returnValue = instance.IsMember(groupOrRole)
public bool IsMember(
    string groupOrRole
)
public:
bool IsMember(
    String^ groupOrRole
)
member IsMember : 
        groupOrRole:string -> bool 
public function IsMember(
    groupOrRole : String
) : boolean

Параметры

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

Тип System. . :: . .Boolean
A 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 belongs to the database.