Click or drag to resize

ControllerEventLog Property

Gets the EventLog class of the controller.

Namespace:  ABB.Robotics.Controllers
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public EventLog EventLog { get; }

Return Value

Type: EventLog
An EventLog reference that can be used to access objects in the EventLog domain in the controller.
Exceptions
ExceptionCondition
GeneralExceptionA General Exception has occurred.
Examples
This example uses the EventLog property of the Controller class to get available EventLogCategory. The EventLogCategory are added to a ListBox.
// Create a Controller instance
Controller c = new Controller();

// Get reference to EventLog domain and get event log categories 
EventLogCategory[] categories = c.EventLog.GetCategories();

// Add Categories to ListBox
foreach (EventLogCategory elc in categories)
{
    listBox1.Items.Add(elc.Name);
}
See Also