Share via


Properties Property

The Properties property of the SPFileVersion class gets metadata for the file version.

Property Value

A System.Collections.Hashtable object that contains the metadata.

Example

The following code example iterates through the collection of versions for a specified file and displays the properties and values for each version.

This example requires using directives (Imports in Visual Basic) for the Microsoft.SharePoint, Microsoft.SharePoint.Utilities, and Microsoft.SharePoint.WebControls namespaces.

The previous example displays metadata like the following:

vti_sourcecontrolcookie :: fp_internal
vti_timelastmodified :: 5/6/2003 8:42:10 PM
vti_sourcecontrolversion :: V2
vti_cachedcustomprops :: vti_title
vti_hasdefaultcontent :: true
vti_cachedtitle :: File_Title
vti_title :: File_Title
vti_modifiedby :: User_Name
vti_oldversion :: 1
vti_filesize :: 19968
vti_author :: User_Name

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security