title: How to get the list of Regions in the RegionManager in PRISM?
body: <p>I'v got the following code :</p>
  
  <blockquote>
    <p>public class MyModule: IModule
        {
            private IRegionManager mRegionManager { get; set; }</p>
  
  <pre><code>    public CMBaseTable(IRegionManager regMan)
      {
          mRegionManager = regMan;
      }
  
      public void Initialize()
      {
          mRegionManager.RegisterViewWithRegion("MainRegion",typeof(MyView));
          var vs = mRegionManager.Regions["MainRegion"].Views;//&lt;--- I get an exception here
      }
  }
  </code></pre>
  </blockquote>
  
  <p>In the line </p>
  
  <blockquote>
    <p>var vs = mRegionManager.Regions["MainRegion"].Views;</p>
  </blockquote>
  
  <p>I'll get an exception that says:
  KeyNotFoundException : "The region manager does not contain the MainRegion region."</p>
  
  <p>But I'm sure that MainRegin is defined and other modules have added views in it.</p>