The following example shows how to display the security context for a facility (7023 - Springfield Recreational Centre).
// Get the Springfield Recreational Centre facility (ID 7023) Facility facility = api.PortfolioManager.GetFacility("ManagingEnergy_Template", "01", "7023");
// display the security context Console.WriteLine(facility.GetSecurityContext());
// OUTPUT ManagingEnergy_Template : 01 : 7023 |
The output tells us that the security context for the facility suggests that the Data Source ID is “ManagingEnergy_Template”, the Portfolio ID is “01” and the Facility ID is “7023” which conceptually is shown below as the yellow circle.