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
Assemblies: Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
<RemoteAttribute> _
Public ReadOnly Property Versions As FileVersionCollection
Get
'Usage
Dim instance As File
Dim value As FileVersionCollection
value = instance.Versions
[RemoteAttribute]
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).