共用方式為


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.