SecurityManager.IsGranted(IPermission) Método

Definición

Precaució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.

Determina si se concede un permiso al autor de la llamada.

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);
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

Parámetros

perm
IPermission

Permiso para probar con la concesión del autor de la llamada.

Devoluciones

true si los permisos concedidos al autor de la llamada incluyen el permiso perm; de lo contrario, false.

Atributos

Comentarios

La concesión de permisos viene determinada por la directiva y es diferente de una demanda sujeta a invalidaciones, como una aserción. Además, IsGranted solo comprueba la concesión del ensamblado de código que realiza la llamada, independientemente de otros autores de llamada de la pila.

Se aplica a