Checks whether the specified permission is granted to the principal.
true if the principal has the permission, false otherwise
The following example checks whether the permission "{AEE3A747-05FB-4f90-BD3A-EF872E4D3211}" is granted to the current user.
[Visual Basic]
If not VGSecurityManager.Principal.HasPermission(new Guid ("AEE3A747-05FB-4f90-BD3A-EF872E4D3211")) Then
' the permission is not granted ...
End If
[C#]
if (!VGSecurityManager.Principal.HasPermission(new Guid ("AEE3A747-05FB-4f90-BD3A-EF872E4D3211")))
{
// the permission is not granted ...
}
VGIPrincipal Interface | Novalys.VisualGuard.Security Namespace | VGIPrincipal.HasPermission Overload List