SecurityManager.IsGranted(IPermission) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Figyelemfelhívás
Ez az API már elavult.
Figyelemfelhívás
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.
Meghatározza, hogy a hívó kap-e engedélyt.
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
Paraméterek
- perm
- IPermission
A hívó engedélyének ellenőrzése.
Válaszok
trueha a hívónak megadott engedélyek tartalmazzák az engedélytperm; egyébként. false
- Attribútumok
Megjegyzések
Az engedélyek megadását szabályzat határozza meg, és eltér a felülbírálási igényektől, például egy állítástól. IsGranted Emellett csak a hívókód-szerelvény megadását teszteli, függetlenül a verem többi hívóitól.