'DeclarationFunction IsInRole( _ ByVal securityRole As ISecurityRole _ ) As Boolean
'UsageDim instance As ISecurityPrincipal Dim securityRole As ISecurityRole Dim value As Boolean value = instance.IsInRole(securityRole)
bool IsInRole( ISecurityRole securityRole )
bool IsInRole( ISecurityRole^ securityRole )
Parameters
- securityRole
- The security role to check.
The value of this parameter cannot be
null(Nothingin Visual Basic).
Return Value
true if the principal is in the specified role; otherwise, false.