FailuresAccessor.IsElementsDeletionPermitted(IList<ElementId>)
Method
Description:
Checks if resolution of the failures by deleting given collection of elements is permitted.
Checks if resolution of the failures by deleting given collection of elements is permitted.
Remarks:
Method does not confirm if deletion of the elements will or may resolve the failure - it simply verifies that given elements exist and can be deleted in the current state of the document.
Method does not confirm if deletion of the elements will or may resolve the failure - it simply verifies that given elements exist and can be deleted in the current state of the document.
Parameters
Parameter | Type | Description |
---|---|---|
idsToDelete | IList | The Ids of elements to be deleted. |
Return Value
Type | Description |
---|---|
Boolean | True if resolution of the failures by deleting given elements is permitted. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | This FailuresAccessor is inactive (is used outside of failures processing). |