RestoreObject Method (PIGlobalRestorer object)

              

 

This method restores an object from the persistence string (persistenceData) passed.

 

Syntax

object.RestoreObject persistenceData, pnvsContext

The RestoreObject method syntax has these parts:

Part

Description

object

An object expression that evaluates to a PIGlobalRestorer object.

persistenceData

The persistence string. This string is obtained from the original object using the IPIPersist interface.

pnvsContext

A NamedValues collection containing context variables.

  

Remarks

Returns the object persisted as an IUnknown pointer. Visual Basic will automatically query for the object type Set to the return value of the method. From Visual C++, you can use QueryInterface to get a pointer to the object.

 

Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error

Description

pseRESTOREOBJECT

There was an error restoring the object.

 

Enabling Operational Intelligence