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, zda 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

truepokud oprávnění udělená volajícímu zahrnují 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 vztahují přepsání, jako je například kontrolní výraz. IsGranted Testuje také pouze udělení sestavení volajícího kódu nezávisle na jiných volajících na zásobníku.

Platí pro