SecurityPropertyCollection.IsInRole Method (String)

 

Allows a user to test if a security principal is a member of a particular group.

Namespace:   System.Web.Security.SingleSignOn.Authorization
Assembly:  System.Web.Security.SingleSignOn.ClaimTransforms (in System.Web.Security.SingleSignOn.ClaimTransforms.dll)

Syntax

public bool IsInRole(
    string role
)
public:
bool IsInRole(
    String^ role
)
member IsInRole : 
        role:string -> bool
Public Function IsInRole (
    role As String
) As Boolean

Parameters

Return Value

Type: System.Boolean

true if the SecurityPropertyCollection contains a SecurityProperty instance, representing an AD FS Group claim with value equal to the given "role". False otherwise.

See Also

SecurityPropertyCollection Class
System.Web.Security.SingleSignOn.Authorization Namespace

Return to top