StorePermission.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 para testar a relação de subconjunto.A permission to test for the subset relationship. Essa permissão deve ser do mesmo tipo da permissão atual.This 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 especifica 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 specifies a set of operations that is wholly contained by the specified permission. Por exemplo, uma permissão que representa acesso a C:\example.txt é um subconjunto de uma permissão que representa o acesso a C: \ .For example, a permission that represents access to C:\example.txt is a subset of a permission that represents 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.

Aplica-se a