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 命名空間