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 が言うように、動作が何であるかを確認するには、1 つのテストで十分であるはずです。