File.Versions property

Gets a value that returns a collection of file version objects that represent the versions of the file.

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

Syntax

'Declaration
Public ReadOnly Property Versions As FileVersionCollection
    Get
'Usage
Dim instance As File
Dim value As FileVersionCollection

value = instance.Versions
public FileVersionCollection Versions { get; }

Property value

Type: Microsoft.SharePoint.Client.FileVersionCollection
Returns a FileVersionCollection instance representing a collection of file version objects that represent the version of the file.

Exceptions

Exception Condition
[System.UnauthorizedAccessException]

The current user has insufficient permissions. Error code: -2147024891.

Remarks

It must not be a null reference (Nothing in Visual Basic).

See also

Reference

File class

File members

Microsoft.SharePoint.Client namespace