ResourcePermissionBaseEntry.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / Security / Permissions / ResourcePermissionBaseEntry.cs / 1 / ResourcePermissionBaseEntry.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Security.Permissions { 
 
    [
    Serializable() 
    ]
    public class ResourcePermissionBaseEntry {
        private string[] accessPath;
        private int permissionAccess; 

        public ResourcePermissionBaseEntry() { 
           this.permissionAccess = 0; 
           this.accessPath = new string[0];
        } 

        public ResourcePermissionBaseEntry(int permissionAccess, string[] permissionAccessPath) {
            if (permissionAccessPath == null)
                throw new ArgumentNullException("permissionAccessPath"); 

            this.permissionAccess = permissionAccess; 
            this.accessPath = permissionAccessPath; 
        }
 
        public int PermissionAccess {
            get {
                return this.permissionAccess;
            } 
        }
 
        public string[] PermissionAccessPath { 
            get {
                return this.accessPath; 
            }
        }
    }
}
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK