Previous Topic: Description Method—Sets or Retrieves the Description of the Policy

Next Topic: ExcludeUser Method—Excludes or Includes a User from the Policy

EnforceANDEvaluation Method—Sets or Retrieves the ANDUser/Group Flag

The EnforceANDEvaluation method sets or retrieves the ANDUser/Group flag depending on the value of the iANDUserFlag.

Syntax

The EnforceANDEvaluation method has the following format:

Netegrity::PolicyMgtPolicy‑>EnforceANDEvaluation(user[, iANDUserFlag])

Parameters

The EnforceANDEvaluation method accepts the following parameters:

user (PolicyMgtUser)

Specifies the user for which to set or retrieve iANDUserFlag.

iANDUserFlag (int)

(Optional) Specifies whether to enforce AND evaluation:

1 to enforce AND evaluation

0 to remove AND evaluation

If this argument is not passed, the function returns the current value of iANDUserFlag. This flag applies to all the users added to the policy for a particular user directory.

Return Value

The EnforceANDEvaluation method returns one of the following values:


Copyright © 2010 CA. All rights reserved. Email CA about this topic