PublishButton.SaveItem method

Saves a list item and sets its status to approved.

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

Syntax

'Declaration
Protected Overrides Function SaveItem As Boolean
'Usage
Dim returnValue As Boolean

returnValue = Me.SaveItem()
protected override bool SaveItem()

Return value

Type: System.Boolean
true if the operation is successful; otherwise, false. (This override always returns true. See the Remarks section.)

Remarks

This override sets the status to approved and then calls SaveItem(SPContext, Boolean, String) which always returns true.

See also

Reference

PublishButton class

PublishButton members

Microsoft.SharePoint.WebControls namespace