Request

Response

    IElement.AddAttributes method

    Adds multiple attributes to this element. These attributes are stored at the instance asset level and are not visible in Forma/PowerBI. They are available through the DX API for connector business logic. Note: If an attribute with the same name already exists on this element, its value is overwritten with the supplied value. Overwriting existing keys is always permitted regardless of the current attribute count (including legacy elements that already exceed the cap). Attribute names are limited to 64 characters and values to 128 characters. Each element may have at most 15 attributes total when adding new keys.

    public void AddAttributes(IDictionary<string, string> attributes)
    
    parameterdescription
    attributes Dictionary of attribute name-value pairs to add.

    Exceptions

    exceptioncondition
    ArgumentNullException Thrown when attributes dictionary is null.
    AttributeValidationException Thrown when attribute names or values are invalid, exceed length limits, or would exceed the per-element attribute count limit.

    See Also