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

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.

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 para Open acesso é um subconjunto de uma permissão para OpenSave acesso.For example, a permission for Open access is a subset of a permission for OpenSave access.

Aplica-se a