SP.UI.ModalDialog.close(dialogResult) Method

SharePoint 2010

Last modified: May 23, 2011

Applies to: SharePoint Foundation 2010

Closes the most recently opened modal dialog with the specified dialog result.



Type: SP.UI.DialogResult

One of the enumeration values that specifies the result of the modal dialog.

This override closes a modal dialog that was opened by the SP.UI.ModalDialog.showModalDialog(options) Method. It calls the base class SP.UI.Dialog.close(dialogResult) Method to release the resources associated with the modal dialog.