RegistryXmlRepository.DeleteElements Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.