GacIdentityPermission.IsSubsetOf(IPermission) Método

Definição

Indica se a permissão atual é um subconjunto da permissão especificada.Indicates whether the current permission is a subset of the specified permission.

public:
 override bool IsSubsetOf(System::Security::IPermission ^ target);
public override bool IsSubsetOf (System.Security.IPermission target);
override this.IsSubsetOf : System.Security.IPermission -> bool
Public Overrides Function IsSubsetOf (target As IPermission) As Boolean

Parâmetros

target
IPermission

Um objeto de permissão para testar a relação de subconjunto.A permission object to test for the subset relationship. A permissão deve ser do mesmo tipo que a permissão atual.The permission must be of the same type as the current permission.

Retornos

Boolean

true se a permissão atual for um subconjunto da permissão especificada; caso contrário, false.true if the current permission is a subset of the specified permission; otherwise, false.

Exceções

target não é null e não é do mesmo tipo que a permissão atual.target is not null and is not of the same type as the current permission.

Comentários

A permissão atual é um subconjunto da permissão especificada se a permissão atual representa um conjunto de operações que está totalmente contido pela permissão especificada.The current permission is a subset of the specified permission if the current permission represents a set of operations that is wholly contained by the specified permission. Se esse método retornar true , a permissão atual não representará mais acesso ao recurso protegido do que a permissão especificada.If this method returns true, the current permission represents no more access to the protected resource than does the specified permission.

Um GacIdentityPermission só dá suporte a operações Set (os IsSubsetOf Intersect métodos, e Union ) quando a permissão atual é igual à permissão especificada.A GacIdentityPermission only supports set operations (the IsSubsetOf, Intersect, and Union methods) when the current permission is equal to the specified permission.

Aplica-se a