Udostępnij za pośrednictwem


IDeletableXmlRepository.DeleteElements Method

Definition

Deletes selected elements from the repository.

public 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
Public 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.

Applies to