SPFile.SourceUIVersion Property

Gets the version number of the parent document for the file.

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

public int SourceUIVersion { get; }

Property Value

Type: System.Int32
A 32-bit integer that indicates the version number, or -1 if the document does not have a parent.