PnrpPermission.Union(IPermission) Método
Definição
Cria uma permissão que é a união entre a PnrpPermission atual e a permissão especificada.Creates a permission that is the union of the current PnrpPermission and the specified permission.
public:
override System::Security::IPermission ^ Union(System::Security::IPermission ^ target);
public override System.Security.IPermission Union (System.Security.IPermission target);
override this.Union : System.Security.IPermission -> System.Security.IPermission
Public Overrides Function Union (target As IPermission) As IPermission
Parâmetros
- target
- IPermission
Uma permissão a ser combinada com a permissão atual.A permission to combine 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 o Union(IPermission) do PnrpPermission atual e a permissão especificada.A new permission that represents the Union(IPermission) of the current PnrpPermission and the specified permission.
Exceções
O parâmetro target é inválido.target parameter is invalid.
Comentários
O resultado de uma chamada para Union é uma permissão que representa todas as operações representadas pela permissão atual PnrpPermission e especificada.The result of a call to Union is a permission that represents all the operations represented by both the current PnrpPermission and the specified permission. Qualquer demanda que passe a permissão passa sua União.Any demand that passes either permission passes their union.
As instruções a seguir precisam ser true para todas as implementações do método Union.The following statements are required to be true for all implementations of the Union method. X e Y representam IPermission objetos que não são uma null referência ( Nothing em Visual Basic).X and Y represent IPermission objects that are not a null reference (Nothing in Visual Basic).
X. Union (X) retorna um objeto que tem o mesmo valor de X.X.Union(X) returns an object that has the same value as X.
X. Union (Y) retorna um objeto que tem o mesmo valor que o objeto retornado por Y. Union (X).X.Union(Y) returns an object that has the same value as the object returned by Y.Union(X).
X. Union (uma
nullreferência (Nothingem Visual Basic)) retorna um objeto que tem o mesmo valor de X.X.Union(anullreference (Nothingin Visual Basic)) returns an object that has the same value as X.