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)


Public ReadOnly Property HasPublishedVersion As Boolean
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


SPListItem class

SPListItem members

Microsoft.SharePoint namespace