This method is the first of three called to query documents from SmartPlant Foundation. This method creates a document data container and document meta-data container as a preparation for the QueryDocuments method. The QueryDocuments method must not be called without calling the CreateConainersForQueryDocuments method first.
The containers created in this method are released in the ReleaseContainersForQueryDocuments method.
0 if the method is successful.
A negative number if the method fails (check the LastErrorMessage property for error message).