Eplan Platform API
Eplan.EplApi.DataModel Namespace / Project Class / GetOptionByName Method
name of the OptionGroup

In This Topic
    GetOptionByName Method (Project)
    In This Topic
    Method for finding Option assigned to the Project with a given name.
    Syntax
    public Option GetOptionByName( 
       string strName
    )
    public:
    Option^ GetOptionByName( 
       String^ strName
    ) 

    Parameters

    strName
    name of the OptionGroup

    Return Value

    OptionGroup assigned to the Project with a given name.
    Exceptions
    ExceptionDescription
    Thrown when strName is null.
    Thrown when strName is empty.
    Remarks
    Searches only among the options that are not assigned to OptionGroups. For options assigned to OptionGroup: get the OptionGroup and use OptionGroup's Option ^ GetOptionByName(System::String ^ strName).
    See Also