Web.OnBeforePublish Event
SharePoint Designer Developer Reference |
Occurs before a Web site is published. .
Syntax
Private Sub expression_Web.OnBeforePublish(Destination As String, Cancel As Boolean)
expression A variable that represents a Web object that has been declared by using the WithEvents keyword in a class module.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Destination | Required | String | Specifies the URL of the published Web site. |
Cancel | Required | Boolean | Specifies whether to cancel the publish operation. True cancels publication of the Web site. |
Remarks
This event can be cancelled.
See Also