IsMember 方法

Verifies whether the database user is a member of the specified role.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Function IsMember ( _
    role As String _
) As Boolean
用法
Dim instance As User
Dim role As String
Dim returnValue As Boolean

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

参数

返回值

类型:System. . :: . .Boolean
A Boolean value that specifies whether the database user is a member of the role.
If True, the database user is a member of the role.
If False (default), the database user is not a member of the role.