Harness proD API Help
EPLAN.Harness.API.DataStructures Namespace / TasksController Class / SelectActiveTaskConfiguration Method
Name of the desired configuration.
Example
In This Topic
    SelectActiveTaskConfiguration Method
    In This Topic
    Select active tasks configuration.
    Syntax
    public void SelectActiveTaskConfiguration( 
       string configurationName
    )

    Parameters

    configurationName
    Name of the desired configuration.
    Exceptions
    ExceptionDescription
    Argument is null.
    Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property.
    This file is not opened.
    Example
    This example shows how to change active task configuration.
    // Get controller from opened designer.
    TasksController tasks = designer.Tasks;
    					
    // Find desired configuration.
    string myConfig = tasks.Configurations.FirstOrDefault(c => c == "MyConfiguration");
    					
    // Select the configuration as active configuration.
    tasks.SelectActiveTaskConfiguration(myConfig);
    See Also