OV_ManagedNode::Modify()
OV_ManagedNode::Modify_Trans()
- void Modify(
- [in] OV_ManagedNode Node)
- void Modify_Trans(
- [in] string TransId,
- [in] OV_ManagedNode Node)
Parameters
- TransId
- Transaction ID returned from OV_Transaction::Start().
- Node
- A modified instance of OV_ManagedNode to store.
Calling Convention
These methods can be called only from a WMI instance object.
Description
Stores changes performed to one or more properties.
It is not possible to get an instance of OV_ManagedNode to
reflect changes to its properties from within
IWbemService::ExecMethodAsync. For this reason, an instance of
OV_ManagedNode is specified as the Node parameter, even though this
method is already called in the context of this instance.
As with the OV_ManagedNode::Create method, this method checks
the following:
- If a required property is missing, the method fails with
MDLAPI_E_PROPERTY_MISSING.
- If the Caption property is an empty string, contains invalid
characters, or has more then 1024 characters, the method fails with
MDLAPI_E_INVALID_CAPTION.
- If a property has an invalid value, the method fails with
MDLAPI_E_INVALID_PROPERTY.
- If the OS properties has been changed before calling this
method, the node is also moved to the appropriate special node
group.
- If a node with the same Primary Node Name already exists, the
method fails with MDLAPI_E_NODE_PNNAME_EXISTS.
- If a node with the same hierarchical path already exists, the
method fails with MDLAPI_E_NODE_HIERPATH_EXISTS.
- If node platform checking fails, the method fails with
MDLAPI_E_NODE_PLATFORM_MATCHING.
Return Value
None.
Extended Status Codes
- MDLAPI_E_PROPERTY_MISSING
- Property is not set.
- MDLAPI_E_INVALID_CAPTION
- Specified object Caption parameter is not valid.
- MDLAPI_E_INVALID_PROPERTY
- Property is not valid.
- MDLAPI_E_NODE_PNNAME_EXISTS
- Node with the same Primary Node Name already exists.
- MDLAPI_E_NODE_HIERPATH_EXISTS
- Node with the same hierarchy path (Caption) already
exists.
- MDLAPI_E_NODE_PLATFORM_MATCHING
- Node platform matching failed.
- MDLAPI_E_TRANSACTION_NOT_EXIST
- Transaction with the specified ID does not exist.