瀏覽代碼

Fixes #48

tags/4.2.6
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)


Loading…
取消
儲存