Previous Topic: AddUserDir Method—Associates a User Directory with the Domain

Next Topic: CreateRealm Method—Creates and Configures a Top-level Realm in the Domain

CreatePolicy Method—Creates and Configures a Policy in the Domain

The CreatePolicy method creates and configures a policy in the domain.

Syntax

The CreatePolicy method has the following format:

Netegrity::PolicyMgtDomain‑>CreatePolicy(policyName [, policyDesc] [, enableFlag] [, activeExpr])

Parameters

The CreatePolicy method accepts the following parameters:

policyName (string)

Specifies the name of the policy.

policyDesc (string)

(Optional) Specifies the description of the policy.

enableFlag (int)

(Optional) Specifies whether to enable (1) or disable (0) the policy. Default is enabled.

activeExpr (string)

(Optional) Specifies the active expression of the policy.

Return Value

The CreatePolicy method returns one of the following values:


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