public TaskConfiguration( string name, ApiTaskType types )
Parameters
- name
- Name of the configuration (must be unique).
- types
- Active task types for this configuration.
public TaskConfiguration( string name, ApiTaskType types )
Exception | Description |
---|---|
EPLAN.Harness.API.Exceptions.ArgumentNullException | Argument is null. |
EPLAN.Harness.API.Exceptions.ArgumentException | Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property. |
// All types of tasks are required except of one (surface protection check). // Instead of listing all required types use AllTaskTypes static property and remove the one type which is not required. ApiTaskType types = TaskConfiguration.AllTaskTypes; types &= ~ApiTaskType.SurfaceProtectionCheck; // Create the task configuration. TaskConfiguration config = new TaskConfiguration("APIConfig", types);