SecurityCallContext.IsUserInRole(String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Verifies that the specified user is in the specified role.
public:
bool IsUserInRole(System::String ^ user, System::String ^ role);
public bool IsUserInRole (string user, string role);
member this.IsUserInRole : string * string -> bool
Public Function IsUserInRole (user As String, role As String) As Boolean
Parameters
- user
- String
The specified user.
- role
- String
The specified role.
Returns
true
if the specified user is a member of the specified role; otherwise, false
.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.