Login.IsMember(String) Login.IsMember(String) Login.IsMember(String) Method

Definition

Returns a Boolean value that specifies whether the login account is a member of a specified role.

public:
 bool IsMember(System::String ^ role);
public bool IsMember (string role);
Public Function IsMember (role As String) As Boolean
Parameters
role
String String String

A String value that specifies the name of the role.

Returns

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

Applies to