HP Operations Manager for Windows

OV_Action::ChangeName()
OV_Action::ChangeName_Trans()


void ChangeName(
[in] OV_Action Action,
[in, optional] string NewName)
void ChangeName_Trans(
[in] string TransId,
[in] OV_Action Action,
[in, optional] string NewName)

Parameters

TransId
Transaction ID returned from OV_Transaction::Start().
Action
Instance of OV_Action in which the Name property is to be changed.
NewName
The New Name property for this instance of OV_Action. Optional parameter. If you do not specify the parameter, or if it is equal to an empty string, the Name property is created as a new GUID. If a tool with the same Name exists, nothing happens, and the method fails with MDLAPI_E_TOOL_NAME_EXISTS.

Calling Convention

These methods can be called from a WMI class or instance object.

Description

Changes the Name property of this tool.

Return Value

None.

Extended Status Codes

MDLAPI_E_TOOL_NAME_EXISTS
Tool with the same Name already exists.
MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.