Important: The information in this document is obsolete and should not be used for new development.
PutParameter
Adds the specified parameter to this parameter set.
void PutParameter (in ParameterKey key, in void* param, in ParamDestructorUPP destructor);
key- The name of the parameter to add.
 param- A pointer to the parameter.
 destructor- A pointer to a programmer-defined destructor for the parameter.
 DISCUSSION
You call this method to add a parameter and its destructor to aParameterSetobject. If the parameter set already contains a parameter of the same name, the method throws thekCDErrParamAlreadyExistsexception.The following type is used for parameter destructor functions. A parameter destructor takes two parameters: an environment pointer and a pointer of type
void*; the function returns no value.
The
typedef void (* ParamDestructorProc)(Environment* ev,
void* param);MyParamDestructorprogrammer-defined function (page 194) illustrates the form of a parameter destructor.If you do not specify a destructor function for a parameter in a parameter set, the parameter is not destroyed when the parameter set is disposed of.
SEE ALSO
TheParameterKeytype (page 171).
TheExtractParametermethod (page 393).
TheGetParametermethod (page 396).
TheRemoveParametermethod (page 398).