The Labs \ Source Viewer \ SSCLI \ System.Security.Permissions \ ResourcePermissionBaseEntry

  1. //------------------------------------------------------------------------------
  2. // <copyright file="ResourcePermissionBaseEntry.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.Security.Permissions
  16. {
  17.    
  18.     [Serializable()]
  19.     public class ResourcePermissionBaseEntry
  20.     {
  21.         private string[] accessPath;
  22.         private int permissionAccess;
  23.        
  24.         public ResourcePermissionBaseEntry()
  25.         {
  26.             this.permissionAccess = 0;
  27.             this.accessPath = new string[0];
  28.         }
  29.        
  30.         public ResourcePermissionBaseEntry(int permissionAccess, string[] permissionAccessPath)
  31.         {
  32.             if (permissionAccessPath == null)
  33.                 throw new ArgumentNullException("permissionAccessPath");
  34.            
  35.             this.permissionAccess = permissionAccess;
  36.             this.accessPath = permissionAccessPath;
  37.         }
  38.        
  39.         public int PermissionAccess {
  40.             get { return this.permissionAccess; }
  41.         }
  42.        
  43.         public string[] PermissionAccessPath {
  44.             get { return this.accessPath; }
  45.         }
  46.     }
  47. }

Developer Fusion