Return type:
Applies to:
SET-PROPERTY ( property-name , property-value )A character string that specifies the case-sensitive name of an application-defined property stored in the client-principal object. You must enclose this character string in quotes. If you specify the Unknown value (?) or the empty string (""), the AVM raises a run-time error.A character expression that contains the value for the specified property. You must enclose this character expression in quotes. If you specify the Unknown value (?) or the empty string (""), the AVM sets the property to that value (and you cannot change it).After you seal the client-principal with a user authentication operation (SEAL( ) method, SECURITY-POLICY:SET-CLIENT( ) method, or SET-DB-CLIENT function), you cannot set any new or existing properties for the object. If you call this method for a sealed client-principal object, the AVM raises a run-time error.
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).
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |