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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.