Condividi tramite


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)
Available in Sandboxed Solutions: No

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

Remarks

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

See Also

Reference

SPFormContext Class

SPFormContext Members

Microsoft.SharePoint Namespace