Checks if resolution of the failures by deleting given collection of elements is permitted.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 22.0.0.0 (22.1.1.0)
Since:
2011
Syntax
| C# |
|---|
public bool IsElementsDeletionPermitted(
IList<ElementId> idsToDelete,
out string reason
) |
| Visual Basic |
|---|
Public Function IsElementsDeletionPermitted ( _
idsToDelete As IList(Of ElementId), _
<OutAttribute> ByRef reason As String _
) As Boolean |
| Visual C++ |
|---|
public:
bool IsElementsDeletionPermitted(
IList<ElementId^>^ idsToDelete,
[OutAttribute] String^% reason
) |
Parameters
- idsToDelete
- Type: System.Collections.Generic..::..IList<(Of <(<'ElementId>)>)>
The Ids of elements to be deleted.
- reason
- Type: System..::..String%
A localized string explaining reason why the elements cannot be deleted.
Return Value
True if resolution of the failures by deleting given elements is permitted
Remarks
Exceptions
See Also