Tests if a permission is granted to caller.
[Visual Basic] Public Shared Function IsGranted( _ ByVal perm As IPermission _ ) As Boolean [C#] public static bool IsGranted( IPermission perm ); [C++] public: static bool IsGranted( IPermission* perm ); [JScript] public static function IsGranted( perm : IPermission ) : Boolean;
True if the permission grant to the caller includes the permission perm.
Grant of permissions is determined by policy and is different than a demand which may be subject to overrides such as assert. Also, IsGranted only tests the grant of the calling code assembly independent of other callers on the stack.
SecurityManager Class | SecurityManager Members | System.Security Namespace