Application.OnWebClose Event
SharePoint Designer Developer Reference |
Occurs when a Web site is closed.
Syntax
Private Sub expression_OnWebClose(ByVal pWeb As Web, 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 to close. |
Cancel | Required | Boolean | True if the closing process was canceled through the user interface, or if Cancel was set to True. Default is False. |
Remarks
The OnWebClose event is associated with the Application object. When you close a Web site, the OnWebClose event fires and executes the code that you specified within the event procedure.
See Also