The New method constructs the Agent API object and must be called before the Agent API object can be used.
Syntax
The New method has the following format:
Netegrity::AgentAPI‑>New(agentName[, sharedSecret][, failover])
Parameters
The New method accepts the following parameters:
pagentName (string)
Specifies the name of the agent as it appears in the policy store.
Note: The agent name is not case-sensitive.
psharedSecret (string)
(Optional) Specifies the shared secret as it appears in the policy store.
Note: If you provide a value for the shared secret, a v4.x agent object is created. If you do not provide a value for the shared secret, a v5.x agent object is created. The shared secret is case-sensitive.
failover (int)
(Optional) Specifies whether to enable or disable failover operation:
Specifies enabling failover operation.
Specifies disabling failover operation.
Return Value
The New method returns the following value:
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |