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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.