PrintingPermission.Intersect(IPermission) Método

Definição

Cria e retorna uma permissão que é a interseção do objeto de permissão atual e de um objeto de permissão de destino.Creates and returns a permission that is the intersection of the current permission object and a target permission object.

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

Parâmetros

target
IPermission

Um objeto de permissão do mesmo tipo que o objeto de permissão atual.A permission object of the same type as the current permission object.

Retornos

IPermission

Um novo objeto de permissão que representa a interseção do objeto atual e do destino especificado.A new permission object that represents the intersection of the current object and the specified target. Este objeto será null se a interseção estiver vazia.This object is null if the intersection is empty.

Exceções

target é um objeto que não é do mesmo tipo que o objeto de permissão atual.target is an object that is not of the same type as the current permission object.

Comentários

A interseção de duas permissões é uma permissão que descreve o conjunto de operações que ambas mantêm em comum.The intersection of two permissions is a permission that describes the set of operations they both hold in common. Especificamente, ele representa as permissões mínimas necessárias para que uma demanda passe as duas permissões.Specifically, it represents the minimum permissions required for a demand to pass both permissions.

Aplica-se a