NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SecurityManager.IsGranted

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;

Parameters

perm
Permission to test against the grant of the caller.

Return Value

True if the permission grant to the caller includes the permission perm.

Remarks

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.

See Also

SecurityManager Class | SecurityManager Members | System.Security Namespace