Important: The information in this document is obsolete and should not be used for new development.
ExtractParameter
Removes the specified parameter from this parameter set without calling the parameter's destructor.
ODBoolean ExtractParameter (in ParameterKey key, out void* param, out ParamDestructorUPP destructor);
key- The name of the parameter to remove.
param- A pointer to the parameter.
destructor- A pointer to a programmer-defined destructor for the parameter.
- return value
kODTrueif the parameter is in the set; otherwise,kODFalse.DISCUSSION
You call this method to remove a parameter from aParameterSetobject. UnlikeRemoveParameter, this method does not call the destructor associated with the parameter.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 (* ParamDestructorProcPtr)(Environment* ev,
void* param);MyParamDestructorprogrammer-defined function (page 194) illustrates the form of a parameter destructor.SEE ALSO
TheParameterKeytype (page 171).
TheGetParametermethod (page 396).
ThePutParametermethod (page 397).
TheRemoveParametermethod (page 398).