Microsoft SDK for Java

compareSet

This method of the UIPermission Class compares the UIPermission instance with the specified permission object.

Syntax

public int compareSet(Object target);

Return Value

Returns one of the following constants:

DISJOINT
EMPTY
OVERLAP
EQUAL
SUBSET
SUPERSET
EMPTY_SUBSET
EMPTY_SUPERSET

Parameters

target The permission object that the UIPermission instance is compared with. This parameter must be an instance of the UIPermission class.

Exceptions

IllegalArgumentException if the specified Object is not an instance of UIPermission.

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