Request

Response

    ElementDataModel.DeleteElementsBySourceId method

    Deletes every element that shares the given SourceId and returns how many were deleted. Use this when a SourceId may be shared by multiple elements.

    public int DeleteElementsBySourceId(string sourceId)
    
    parameterdescription
    sourceId The element SourceId to delete all matches for.

    Return Value

    The number of elements deleted (0 when none match).

    Exceptions

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

    See Also