Microsoft SDK for Java

add

This method of the PermissionDataSet Class adds a permission to the set.

Syntax

public synchronized boolean add(PermissionID pid,IPermission perm);

Return Value

Returns false if a permission of the same type already exists in the set; otherwise, returns true.

Parameters

pid The permission type.
perm The permission object.

Remarks

The permission is specified by its type, and an IPermission instance that corresponds to that type must be specified. If a permission of that type already exists in the set, the add operation fails.

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