Share via


SPPageStateControl.EnsureItemSavedIfEditMode method (String)

Ensures an item is saved to the server if it is necessary and specifies an event argument.

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

Syntax

'Declaration
Public Function EnsureItemSavedIfEditMode ( _
    eventArgument As String _
) As Boolean
'Usage
Dim instance As SPPageStateControl
Dim eventArgument As String
Dim returnValue As Boolean

returnValue = instance.EnsureItemSavedIfEditMode(eventArgument)
public bool EnsureItemSavedIfEditMode(
    string eventArgument
)

Parameters

  • eventArgument
    Type: System.String

    A string that contains the event argument.

Return value

Type: System.Boolean
true to ensure an item is saved; otherwise, false.

See also

Reference

SPPageStateControl class

SPPageStateControl members

EnsureItemSavedIfEditMode overload

Microsoft.SharePoint.WebControls namespace