GacIdentityPermission.Union(IPermission) Método
Definição
Cria e retorna uma permissão que é a união entre a permissão atual e a permissão especificada.Creates and returns a permission that is the union of the current permission 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 a união da permissão atual e da permissão especificada.A new permission that represents the union of the current permission and the specified permission.
Exceções
target não é null e não é do mesmo tipo que a permissão atual.target is not null and is not of the same type as the current permission.
Comentários
O resultado de uma chamada para o Union método é uma permissão que inclui todas as operações representadas pela permissão atual e a permissão especificada.The result of a call to the Union method is a permission that includes all the operations represented by both the current permission and the specified permission. Qualquer demanda que passe a permissão passa sua União.Any demand that passes either permission passes their union.
Um GacIdentityPermission só dá suporte a operações Set (os IsSubsetOf Intersect métodos, e Union ) quando a permissão atual é igual à permissão especificada.A GacIdentityPermission only supports set operations (the IsSubsetOf, Intersect, and Union methods) when the current permission is equal to the specified permission.