SecurityManager.IsGranted(IPermission) Metoda

Definice

Upozornění

Toto rozhraní API je teď zastaralé.

Upozornění

IsGranted is obsolete and will be removed in a future release of the .NET Framework. Please use the PermissionSet property of either AppDomain or Assembly instead.

Určuje, jestli je volajícímu uděleno oprávnění.

public:
 static bool IsGranted(System::Security::IPermission ^ perm);
[System.Obsolete]
public static bool IsGranted (System.Security.IPermission perm);
public static bool IsGranted (System.Security.IPermission perm);
[System.Obsolete("IsGranted is obsolete and will be removed in a future release of the .NET Framework.  Please use the PermissionSet property of either AppDomain or Assembly instead.")]
public static bool IsGranted (System.Security.IPermission perm);
[<System.Obsolete>]
static member IsGranted : System.Security.IPermission -> bool
static member IsGranted : System.Security.IPermission -> bool
[<System.Obsolete("IsGranted is obsolete and will be removed in a future release of the .NET Framework.  Please use the PermissionSet property of either AppDomain or Assembly instead.")>]
static member IsGranted : System.Security.IPermission -> bool
Public Shared Function IsGranted (perm As IPermission) As Boolean

Parametry

perm
IPermission

Oprávnění k otestování proti udělení volajícího.

Návraty

Boolean

truepokud oprávnění udělená volajícímu obsahují oprávnění perm, jinak . false

Atributy

Poznámky

Udělení oprávnění je určeno zásadami a liší se od poptávky, na kterou se vztahuje přepsání, jako je například tvrzení. IsGranted Testuje také pouze udělení sestavení volajícího kódu nezávisle na ostatních volajících na zásobníku.

Platí pro