Is InRole(String) Method
Determines whether the current principal belongs to the specified role.
public: bool IsInRole(System::String ^ role);
public bool IsInRole (string role);
abstract member IsInRole : string -> bool
Public Function IsInRole (role As String) As Boolean
The name of the role for which to check membership.
true if the current principal is a member of the specified role; otherwise,