Constable Authorization Engine 2.0 BETA

Role.IsMember Method 

[This is preliminary documentation and subject to change.]

Determines whether a principal is member of the role.

[Visual Basic]
Overridable Public Function IsMember( _
   ByVal principal As IPrincipal _
) As Boolean
[C#]
public virtual bool IsMember(
   IPrincipal principal
);

Parameters

principal
The principal whose role membership is to be determined.

Return Value

Returns true if the principal is member of the role, otherwise returns false.

Remarks

The default implementation simply calls the IsInRole method on the passed-in principal reference with the role argument set to Role.Id.

You can override the implementation in a derived class if you want to achieve more sophisticated membership checking. See the WindowsRole.IsMember method documentation for an example.

See Also

Role Class | LaMarvin.Constable.Model Namespace