Entity.DeleteAllVersions method

Deletes all version of an external content type.

Namespace:  Microsoft.SharePoint.BusinessData.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Sub DeleteAllVersions ( _
    namespace As String, _
    name As String, _
    catalog As AdministrationMetadataCatalog _
)
'Usage
Dim namespace As String
Dim name As String
Dim catalog As AdministrationMetadataCatalogEntity.DeleteAllVersions(namespace, _
    name, catalog)
public static void DeleteAllVersions(
    string namespace,
    string name,
    AdministrationMetadataCatalog catalog
)

Parameters

  • namespace
    Type: System.String

    The namespace of the external content type to delete.

  • name
    Type: System.String

    The name of the external content type to delete.

Remarks

This method deletes all versions of the external content type starting from inactive versions. The inactive versions of the external content type are deleted in an undeterministic order. The active versions of the external content type are deleted last. If the principal, in whose context this method is being called, does not have permission to delete one or more versions of the external content type, this method will fail with an AccessDeniedException, when such a version is encountered. Versions that are deleted before the exception is thrown will not be reverted and other versions that the user may have permissions to delete will not be deleted.

See also

Reference

Entity class

Entity members

Microsoft.SharePoint.BusinessData.Administration namespace