Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Returns a Boolean value that specifies whether the login account is a member of a specified role.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Function IsMember ( _
role As String _
) As Boolean
'Usage
Dim instance As Login
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
Parameters
- role
Type: System.String
A String value that specifies the name of the role.
Return Value
Type: System.Boolean
A Boolean value that specifies whether the login account is a member of the specified role or not.If True, the login account is a member of the specified role.If False, the login account is not a member of the specified role.
Examples
Managing Users, Roles, and Logins
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace