UpdateDynamicTemplate Method
Updates the pages that are attached to a Dynamic Web Template so that any changes to the Dynamic Web Template are applied to pages that reference the Dynamic Web Template.
expression.UpdateDynamicTemplate(type, pbzLog)
*expression * Required. An expression that returns one of the objects in the Applies To list.
pState Required DynamicTemplateState. Specifies the region mapping to use when updating the Dynamic Web Template. Use the SetHeadMapping and SetBodyMapping methods of the DynamicTemplateState object to customize region mapping.
pbzLog Required String. A ByRef parameter that returns a String containing the log entry about the update process for a file. In the case of an error, it returns information that indicates which files have failed.
Remarks
If an error occurs, the update process will terminate unless the SkipOnQuery property is set to True.
Example
The following example updates the Dynamic Web Template references in the specified file.
Dim objState As DynamicTemplateState
Dim objFile As WebFile
Dim strLog As String
Set objState = Application.CreateDynamicTemplateState
Set objFile = ActiveWeb.LocateFile("home.htm")
objFile.UpdateDynamicTemplate objState, strLog
Applies to | WebEx Object | WebFile Object