Microsoft SDK for Java

combine

This method of the IPermission Interface creates and returns a new permission object that is a combination of the current permission object and the specified permission object. The new object allows access to exactly those resources allowed by either one of the permission objects that it was constructed from.

Syntax

IPermission combine(IPermission other) ;

Return Value

Returns the resulting permission object.

Parameters

other The permission object that indicates additional resources to allow access to.

Exceptions

IllegalArgumentException if the specified permission object is not of the same type as the permission object it is being combined with.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.