Navigation:  SECURITY > 4.1 SECURITY CONTEXT >

4.1.1 Example: Displaying the Security Context for a Facility

Previous page Next page
  rev. 2009-08-11        

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.



4.1.1_Example_Displaying_the_S         ©2017 Managing Energy Inc.