Raimund Andée [MSFT] преди 5 години
родител
ревизия
f23e2f63a1
променени са 2 файла, в които са добавени 6 реда и са изтрити 5 реда
  1. +1
    -1
      Security2/FileSystem/FileSystemAccessRule2 Class/FileSystemAccessRule2.cs
  2. +5
    -4
      Security2/FileSystem/SimpleFileSystemAccessRule.cs

+ 1
- 1
Security2/FileSystem/FileSystemAccessRule2 Class/FileSystemAccessRule2.cs Целия файл

@@ -68,7 +68,7 @@ namespace Security2
}
public SimpleFileSystemAccessRule ToSimpleFileSystemAccessRule2()
{
return new SimpleFileSystemAccessRule(fullName, Account, AccessRights);
return new SimpleFileSystemAccessRule(fullName, Account, AccessRights, AccessControlType);
}
}
}

+ 5
- 4
Security2/FileSystem/SimpleFileSystemAccessRule.cs Целия файл

@@ -100,11 +100,12 @@ namespace Security2
}
}

public SimpleFileSystemAccessRule(string Path, IdentityReference2 account, FileSystemRights2 access)
public SimpleFileSystemAccessRule(string path, IdentityReference2 account, FileSystemRights2 access, AccessControlType accessControlType)
{
this.fullName = Path;
this.accessRights = access;
this.identity = account;
fullName = path;
accessRights = access;
identity = account;
type = accessControlType;
}

public override bool Equals(object obj)


Зареждане…
Отказ
Запис