SecurityCallContext.IsUserInRole Method (String, String)

 

Verifies that the specified user is in the specified role.

Namespace:   System.EnterpriseServices
Assembly:  System.EnterpriseServices (in System.EnterpriseServices.dll)

public bool IsUserInRole(
	string user,
	string role
)

Parameters

user
Type: System.String

The specified user.

role
Type: System.String

The specified role.

Return Value

Type: System.Boolean

true if the specified user is a member of the specified role; otherwise, false.

.NET Framework
Available since 1.1
Return to top
Show: