Request

Response

    ElementDataModel.Classify method

    Find-or-creates the (system, value) classification nested under parent (root if null), attaches element under the deepest classification node, and returns the handle.

    public IClassification Classify(IElement element, ClassificationSystem system, string value, 
        IClassification parent = null, string sourceId = null)
    
    parameterdescription
    element The element to classify.
    system The classification system, e.g. Category / Layer, or Custom for a host-specific or industry-specific system.
    value Classification value, e.g. "Walls".
    parent Parent classification handle from a prior Classify call, or null for a root.
    sourceId Optional connector id; empty or null reuses an existing slot.

    Return Value

    The classification handle (the deepest node this element now hangs under).

    Exceptions

    exceptioncondition
    ArgumentNullException Thrown when element is null.
    ArgumentException Thrown when value is null or whitespace, or when sourceId conflicts with an existing non-empty value.
    InvalidCastException Thrown when element is not an SDK-provided IElement implementation.

    See Also