Share via


RegistryXmlRepository.DeleteElements Method

Definition

Deletes selected elements from the repository.

public virtual bool DeleteElements (Action<System.Collections.Generic.IReadOnlyCollection<Microsoft.AspNetCore.DataProtection.Repositories.IDeletableElement>> chooseElements);
abstract member DeleteElements : Action<System.Collections.Generic.IReadOnlyCollection<Microsoft.AspNetCore.DataProtection.Repositories.IDeletableElement>> -> bool
override this.DeleteElements : Action<System.Collections.Generic.IReadOnlyCollection<Microsoft.AspNetCore.DataProtection.Repositories.IDeletableElement>> -> bool
Public Overridable Function DeleteElements (chooseElements As Action(Of IReadOnlyCollection(Of IDeletableElement))) As Boolean

Parameters

chooseElements
Action<IReadOnlyCollection<IDeletableElement>>

A snapshot of the elements in this repository. For each, set DeletionOrder to a non-null value if it should be deleted. Elements are deleted in increasing order. If any deletion fails, the remaining deletions MUST be skipped.

Returns

True if all deletions succeeded.

Implements

Applies to