Database.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
参数
- groupOrRole
类型:System.String
A String value that specifies the name of the group or role.
返回值
类型: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 does not belong to the database.
请参阅
参考
Microsoft.SqlServer.Management.Smo 命名空间