Compartilhar via


SPMobilePublishNavigation.TrySaveItem Method

Saves (and possibly publishes) a post on a mobile blog site.

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

Syntax

'Declaration
Public Overrides Function TrySaveItem As Boolean
'Usage
Dim instance As SPMobilePublishNavigation
Dim returnValue As Boolean

returnValue = instance.TrySaveItem()
public override bool TrySaveItem()

Return Value

Type: System.Boolean
true if the post is successfully saved; otherwise, false.

Remarks

If moderation is enabled for the blog site, this method sets the status of the post to Approved and publishes it; that is, makes it visible to site visitors. If moderation is not enabled, the method simply saves the post; that is, the control behaves exactly as a SPMobilePostsSaveNavigation control.

This method is called by the Click event of the CommandControl property of the SPMobilePublishNavigation control.

See Also

Reference

SPMobilePublishNavigation Class

SPMobilePublishNavigation Members

Microsoft.SharePoint.MobileControls Namespace