Request

Response

    ElementDataModel.AddParameterAsync method

    Adds a parameter at the model level.

    public Task<IParameter> AddParameterAsync(IParameter parameterDefinition)
    
    parameterdescription
    parameterDefinition The definition of the parameter to add.

    Return Value

    The added parameter.

    Exceptions

    exceptioncondition
    ArgumentNullException Thrown when parameterDefinition is null.
    NotFoundException Thrown when the root asset is not present.
    ArgumentException Thrown when a custom parameter with the same name already exists at the model level.

    See Also