コード例 #1
0
ファイル: AccessControlEntry.cs プロジェクト: JianwenSun/cc
 /// <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;
 }
コード例 #2
0
ファイル: AccessControlEntry.cs プロジェクト: mdae/MonoRT
 public AccessControlEntry(Trustee trustee,
                           GenericAccessRights genericAccessRights,
                           StandardAccessRights standardAccessRights,
                           AccessControlEntryType entryType)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
		public AccessControlEntry(Trustee trustee,
			GenericAccessRights genericAccessRights,
			StandardAccessRights standardAccessRights,
			AccessControlEntryType entryType)
		{
			throw new NotImplementedException();
		}
コード例 #4
0
        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() }));
        }
コード例 #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() }));
        }
コード例 #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 }));
        }
コード例 #7
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;
 }
コード例 #8
0
 public AccessControlEntry(Trustee trustee, GenericAccessRights genericAccessRights, StandardAccessRights standardAccessRights, AccessControlEntryType entryType)
 {
 }
コード例 #9
0
	public AccessControlEntry(Trustee trustee, GenericAccessRights genericAccessRights, StandardAccessRights standardAccessRights, AccessControlEntryType entryType) {}