SPListItem.HasPublishedVersion Property

Gets a Boolean value that specifies whether a published version of the item exists.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property HasPublishedVersion As Boolean
    Get
'Usage
Dim instance As SPListItem
Dim value As Boolean

value = instance.HasPublishedVersion
public bool HasPublishedVersion { get; }

Property Value

Type: System.Boolean
true if the item has a published version; otherwise, false.

See Also

Reference

SPListItem Class

SPListItem Members

Microsoft.SharePoint Namespace