Application.OnBeforeWebPublish Event
SharePoint Designer Developer Reference |
Occurs before a Web site is published.
Syntax
Private Sub expression_OnBeforeWebPublish(ByVal pWeb As Web, Destination As String, Cancel As Boolean)
expression A variable that represents an Application object that has been declared by using the WithEvents option in a class module.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
pWeb | Required | Web | The Web site being published. |
Destination | Required | String | The URL of the target location. |
Cancel | Required | Boolean | Aborts the publish operation. When Cancel is programmatically set to True, the user can abort the save process by clicking the Cancel button on the form. Default is False. |
Remarks
The OnBeforeWebPublish event is associated with the Application object. When the user publishes a Web site in Office SharePoint Designer, the OnBeforeWebPublish event fires and executes the code within the event procedure.
See Also