UrlIdentityPermission.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 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

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.

- ou --or- A propriedade URL não é uma URL válida.The Url property is not a valid URL.

Comentários

A permissão atual é um subconjunto da permissão especificada se a permissão atual identificar o acesso a uma URL que está totalmente contida pela permissão especificada.The current permission is a subset of the specified permission if the current permission identifies access to a URL that is wholly contained by the specified permission. Por exemplo, uma permissão que representa o acesso a http://www.fourthcoffee.com/process/grind.htm é um subconjunto de uma permissão que representa o acesso ao http://www.fourthcoffee.com/* .For example, a permission that represents access to http://www.fourthcoffee.com/process/grind.htm is a subset of a permission that represents access to http://www.fourthcoffee.com/*. 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.

UrlIdentityPermission oferece suporte a operações de conjunto ( IsSubsetOf , Intersect e Union ) somente quando a permissão atual é igual à permissão especificada ou quando uma das permissões usa o operador curinga (" * ").UrlIdentityPermission supports set operations (IsSubsetOf, Intersect, and Union) only when the current permission is equal to the specified permission or when one of the permissions uses the wildcard operator ("*").

Aplica-se a