RegistryPermission.Union(IPermission) Método
Definição
Cria uma permissão que é a união entre a permissão atual e a permissão especificada.Creates a permission that is the union of the current permission and the specified permission.
public:
override System::Security::IPermission ^ Union(System::Security::IPermission ^ other);
public override System.Security.IPermission Union (System.Security.IPermission other);
override this.Union : System.Security.IPermission -> System.Security.IPermission
Public Overrides Function Union (other As IPermission) As IPermission
Parâmetros
- other
- 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
O parâmetro other não é null e não é do mesmo tipo que a permissão atual.The other parameter is not null and is not of the same type as the current permission.
Comentários
O resultado de uma chamada para Union é uma permissão que representa todas as operações representadas pela permissão atual e a permissão especificada.The result of a call to Union is a permission that represents 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.