PeerCollaborationPermission.Intersect(IPermission) Método
Definição
Cria e retorna uma permissão que é a interseção do PeerCollaborationPermission atual e da permissão target especificada.Creates and returns a permission that is the intersection of the current PeerCollaborationPermission and the specified target permission.
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
Permissão para Intersect(IPermission) com a permissão atual.Permission to Intersect(IPermission) with the current permission. Ele deve ser do mesmo tipo da permissão atual.It must be of the same type as the current permission.
Retornos
Uma nova permissão que representa a interseção do PeerCollaborationPermission atual e da permissão target especificada.A new permission that represents the intersection of the current PeerCollaborationPermission and the specified target permission. Esta nova permissão será uma referência null (Nothing no Visual Basic) se a interseção estiver vazia.This new permission is a null reference (Nothing in Visual Basic) if the intersection is empty.
Exceções
O parâmetro de destino não for uma referência null (Nothing no Visual Basic) e não for uma instância da mesma classe que a permissão atual.The target parameter is not a null reference (Nothing in Visual Basic) and is not an instance of the same class as the current permission.
Comentários
A interseção de duas permissões é uma permissão que descreve o conjunto de operações que ambos descrevem em comum.The intersection of two permissions is a permission that describes the set of operations they both describe in common. Somente uma demanda que passa as duas permissões originais passará a interseção.Only a demand that passes both original permissions will pass the intersection.
As instruções a seguir precisam ser true para todas as implementações do Intersect método.The following statements are required to be true for all implementations of the Intersect method. X e Y representam IPermission referências de objeto que não são uma null referência ( Nothing em Visual Basic).X and Y represent IPermission object references that are not a null reference (Nothing in Visual Basic).
X. Intersect (X) retorna um valor igual a X.X.Intersect(X) returns a value equal to X.
X. Intersect (Y) retorna o mesmo valor que Y. Intersect (X).X.Intersect(Y) returns the same value as Y.Intersect(X).
X. Intersect (uma
nullreferência) retorna umanullreferência.X.Intersect(anullreference) returns anullreference.