IElementDataModel.GetElementsBySourceId method
Returns all non-deleted IElements whose SourceId matches the specified value. Use this method when the same SourceId may be shared by multiple elements.
public IEnumerable<IElement> GetElementsBySourceId(string sourceId)
| parameter | description |
|---|---|
| sourceId | The SourceId to look up. |
Return Value
All IElements that have the specified SourceId. Returns an empty enumerable when none match.
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when sourceId is null. |
| ArgumentException | Thrown when sourceId is empty. |
See Also
- interface IElement
- interface IElementDataModel
- namespace Autodesk.DataExchange.Interface