PreviousNextIndex

SET-PROPERTY( ) method

Sets the value of the specified application-defined property associated with an unsealed Client-principal object.

Return type: LOGICAL

Applies to: Client-principal object handle

Syntax
SET-PROPERTY( property-name, property-value ) 

property-name
property-value

If successful, this method returns TRUE. Otherwise, it returns FALSE.

If you call this method more than once per property, the AVM generates a run-time error.

Once all property values are set for the Client-principal object, you must seal the object using the SEAL( ) method. Once sealed, you cannot set any new or existing properties for the object. If you call this method for a sealed Client-principal object, the AVM generates a run-time error.

Calling this method does not generate an audit event or an audit record.

You can use the GET-PROPERTY( ) method to get the value of a single property associated with a Client-principal object, or use the LIST-PROPERTY-NAMES( ) method to retrieve a list of all properties associated with the Client-principal object.

The following code fragment illustrates how to use the SET-PROPERTY( ) method:

DEFINE VARIABLE hCP    AS HANDLE  NO-UNDO. 
DEFINE VARIABLE val-ok AS LOGICAL NO-UNDO. 
. . . 
CREATE CLIENT-PRINCIPAL hCP. 
hCP:SET-PROPERTY(“eye-color”, “Blue”). 
. . . 
val-ok = hCP:VALIDATE-SEAL(key). 

See also: GET-PROPERTY( ) method, LIST-PROPERTY-NAMES( ) method


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex