Microsoft SDK for Java

Load

This method of the IPersistStorage interface loads an object from its existing storage.

Syntax

public void Load(IStorage pstg);

Return Value

S_OK -- The object was successfully loaded.

CO_E_ALREADYINITIALIZED -- The object has already been initialized by a previous call to the IPersistStorage.Load method or the IPersistStorage.InitNew method.

E_OUTOFMEMORY -- The object was not loaded due to lack of memory.

E_FAIL -- The object was not loaded due to some reason besides a lack of memory.

Parameters

[in] pstg The IStorage pointer to the existing storage from which the object is to be loaded.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.