Web.OnClose Event

SharePoint Designer Developer Reference

Occurs when a user closes the active Web site window. .

Syntax

Private Sub expression_OnClose(pCancel As Boolean)

expression   A variable that represents a Web object that has been declared by using the WithEvents option in a class module.

Parameters

Name Required/Optional Data Type Description
Cancel Required Boolean Determines whether the operation should be cancelled. True cancels closure of the active Web site.

See Also