Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有一个属于一个组的主体,该组属于一个组,该组属于一个添加到构建它的角色“管理员”的组,是否会调用principal.IsInRole(WindowsBuiltInRole.Administrator)返回 true?
principal.IsInRole(WindowsBuiltInRole.Administrator)
根据提供的信息,它将返回 true yes。然而,正如 Blam 所说,只需一项测试就足以确定行为是什么