FileIOPermission.IsSubsetOf(IPermission) Método
Definição
Determina se a permissão atual é um subconjunto da permissão especificada.Determines 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
Uma permissão que deve ser testada quanto à relação de subconjunto.A permission that is to be tested for the subset relationship. Essa permissão deve ser do mesmo tipo que a permissão atual.This permission must be the same type as the current permission.
Retornos
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
O parâmetro target não é null e não é do mesmo tipo que a permissão atual.The target parameter 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 especifica um conjunto de operações que está contido pela permissão especificada.The current permission is a subset of the specified permission if the current permission specifies a set of operations that is contained by the specified permission. Por exemplo, uma permissão que representa acesso de leitura para C:\example.txt é um subconjunto de uma permissão que representa o acesso de leitura para C: \ .For example, a permission that represents read access to C:\example.txt is a subset of a permission that represents read access to C:\. 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.