API Help
Eplan.EplApi.DataModel Namespace / OptionGroup Class / AddOption Method / AddOption(String) Method
name of the option

In This Topic
    AddOption(String) Method
    In This Topic
    Adds Option to the OptionGroup. The description is set to an empty multilang value, the state is set to true (so the option is active).
    Syntax
    public Option AddOption( 
       string strName
    )
    public:
    Option^ AddOption( 
       String^ strName
    ) 

    Parameters

    strName
    name of the option

    Return Value

    Returns added Option.
    Exceptions
    ExceptionDescription
    Thrown when strName is null.
    Thrown when strName is empty.
    Thrown when Option with strName already exists in OptionGroup.
    Remarks
    Option name must be unique for the group.
    See Also