vtiSetWebRecalcDependencies

C++: void vtiSetWebRecalcDependencies(BOOL bRecalcOn);
VB: vtiSetWebRecalcDependencies(RecalcOn as Integer)

Description

This method turns dependency updating on or off in the current web.

While dependency updating is turned off, none of the documents uploaded by vtiPutDocument will appear to be in the web as seen by browsers.

This is a blocking call.

NOTE: To upload multiple documents efficiently, use the vtiPutDocuments method instead of combining vtiSetWebRecalcDependencies with vtiPutDocument. The vtiPutDocuments method will automatically turn off dependency updating when it begins uploading documents and on again when it finishes.

Using vtiSetWebRecalcDependencies is discouraged, since if you accidentally leave recalculation turned off, authors will perceive the web as being broken. Selecting the Recalculate Hyperlinks option from the FrontPage Explorer’s Tools menu will fix the problem.

Return Value

None.

Parameters

RecalcOn is set to False to stop dependency updating and True to turn it back on. When RecalcOn is set to True after being set to False, the entire web is checked for dependencies and updated before the method returns.