Bewerken

Delen via


SecurityCallContext.IsUserInRole(String, String) Method

Definition

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