IsMember 方法
判斷指定的群組或角色是否屬於資料庫。
命名空間: 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
指定群組或角色名稱的 String 值。
傳回值
型別:System. . :: . .Boolean
Boolean 值,這個值會指定指定的群組或角色是否與資料庫相關聯。
如果為 True,則表示指定的群組或角色屬於資料庫。
如果為 False,則表示指定的群組或角色不屬於資料庫。