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.StringThe namespace of the external content type to delete.
name
Type: System.StringThe name of the external content type to delete.
catalog
Type: Microsoft.SharePoint.BusinessData.Administration.AdministrationMetadataCatalogThe catalog to delete the external content type from.
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.