FileVersionCollection.DeleteAll Method
Deletes all the file version objects in the collection.
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 Sub DeleteAll
'Usage
Dim instance As FileVersionCollection
instance.DeleteAll()
[RemoteAttribute]
public void DeleteAll()
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPException] | Specified file URL is invalid. Error code: -2130575312. |
[System.IO.DirectoryNotFoundException] | File version obtained internally refers to a version that does not exist anymore. Error code: -2147024893. |
[System.UnauthorizedAccessException] | The current user has insufficient permissions. Error code: -2147024891. |