LoadedFromStorage Method
Called after the entire class graph is loaded from mapped storage to allow custom post-load marshaling.
Namespace: Microsoft.CommerceServer.Runtime
Assembly: Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)
Syntax
'Declaration
Public Overridable Sub LoadedFromStorage ( _
rootInstance As Object _
)
'Usage
Dim instance As MappedStorageBase
Dim rootInstance As Object
instance.LoadedFromStorage(rootInstance)
public virtual void LoadedFromStorage(
Object rootInstance
)
public:
virtual void LoadedFromStorage(
Object^ rootInstance
)
public function LoadedFromStorage(
rootInstance : Object
)
Parameters
- rootInstance
Type: System..::.Object
A reference to the loaded root object of the class graph. When loading a purchase order for instance, this will be a reference to the root PurchaseOrder -derived object.
Remarks
This method is called after all object instances in a class graph saved to mapped storage have been loaded and created, but before returning the root object for use by the entity that invoked the load operation. It can be used to perform post-load marshaling steps required to prepare this class instance for general use.
Derived classes are not required to implement an override of this method. The default behavior of the base class is to do nothing.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.