Request

Response

    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)
    
    parameterdescription
    sourceId The element SourceId to look up.

    Return Value

    All IElements that have the specified SourceId. Returns an empty enumerable when none match.

    Exceptions

    exceptioncondition
    ArgumentNullException Thrown when sourceId is null.
    ArgumentException Thrown when sourceId is empty.

    See Also