Esempio n. 1
0
 /// <include file='doc\AccessControlEntry.uex' path='docs/doc[@for="AccessControlEntry.AccessControlEntry2"]/*' />
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 public AccessControlEntry(Trustee trustee, GenericAccessRights genericAccessRights, StandardAccessRights standardAccessRights, AccessControlEntryType entryType)
 {
     this.GenericAccessRights = genericAccessRights;
     this.StandardAccessRights = standardAccessRights;
     this.Trustee = trustee;
     this.EntryType = entryType;
 }
Esempio n. 2
0
 public AccessControlEntry(Trustee trustee,
                           GenericAccessRights genericAccessRights,
                           StandardAccessRights standardAccessRights,
                           AccessControlEntryType entryType)
 {
     throw new NotImplementedException();
 }
		public AccessControlEntry(Trustee trustee,
			GenericAccessRights genericAccessRights,
			StandardAccessRights standardAccessRights,
			AccessControlEntryType entryType)
		{
			throw new NotImplementedException();
		}
        static string AccessMaskToString(uint granted_access)
        {
            if (_type.HasFullPermission(granted_access))
            {
                return("Full Permission");
            }

            KeyAccessRights      rights   = (KeyAccessRights)(granted_access & 0xFFFF);
            StandardAccessRights standard = (StandardAccessRights)(granted_access & 0x1F0000);

            return(String.Join(", ", new string[] { standard.ToString(), rights.ToString() }));
        }
Esempio n. 5
0
        static string AccessMaskToString(ObjectTypeInfo type, uint granted_access)
        {
            if (type.HasFullPermission(granted_access))
            {
                return("Full Permission");
            }

            Object rights = Enum.ToObject(GetTypeAccessRights(type), granted_access & 0xFFFF);

            StandardAccessRights standard = (StandardAccessRights)(granted_access & 0x1F0000);

            return(String.Join(", ", new string[] { standard.ToString(), rights.ToString() }));
        }
Esempio n. 6
0
        static string AccessMaskToString(uint granted_access, bool directory)
        {
            if (_type.HasFullPermission(granted_access))
            {
                return("Full Permission");
            }
            string file_rights;

            if (directory)
            {
                FileDirectoryAccessRights rights = (FileDirectoryAccessRights)(granted_access & 0x1FF);
                file_rights = rights.ToString();
            }
            else
            {
                FileAccessRights rights = (FileAccessRights)(granted_access & 0x1FF);
                file_rights = rights.ToString();
            }

            StandardAccessRights standard = (StandardAccessRights)(granted_access & 0x1F0000);

            return(String.Join(", ", new string[] { standard.ToString(), file_rights }));
        }
 /// <include file='doc\AccessControlEntry.uex' path='docs/doc[@for="AccessControlEntry.AccessControlEntry2"]/*' />
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 public AccessControlEntry(Trustee trustee, GenericAccessRights genericAccessRights, StandardAccessRights standardAccessRights, AccessControlEntryType entryType)
 {
     this.GenericAccessRights  = genericAccessRights;
     this.StandardAccessRights = standardAccessRights;
     this.Trustee   = trustee;
     this.EntryType = entryType;
 }
 public AccessControlEntry(Trustee trustee, GenericAccessRights genericAccessRights, StandardAccessRights standardAccessRights, AccessControlEntryType entryType)
 {
 }
	public AccessControlEntry(Trustee trustee, GenericAccessRights genericAccessRights, StandardAccessRights standardAccessRights, AccessControlEntryType entryType) {}