SPFormContext.OnSaveHandler property

Gets or sets an event handler for callback when the Save button in the form is clicked.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property OnSaveHandler As EventHandler
    Get
    Set
'Usage
Dim instance As SPFormContext
Dim value As EventHandler

value = instance.OnSaveHandler

instance.OnSaveHandler = value
public EventHandler OnSaveHandler { get; set; }

Property value

Type: System.EventHandler
The event handler.

Remarks

The event handler specified by the OnSaveHandler property overrides the default save behavior.

See also

Reference

SPFormContext class

SPFormContext members

Microsoft.SharePoint namespace