0
我在我的系統上有一個管理員組。它包含一些成員。 我可以輕鬆找到管理員組的所有成員。但我想查找使用C#的管理員子組的所有成員。找出使用C#的子組的成員
我在我的系統上有一個管理員組。它包含一些成員。 我可以輕鬆找到管理員組的所有成員。但我想查找使用C#的管理員子組的所有成員。找出使用C#的子組的成員
if (gp != null) // gp is your instance of GroupPrincipal
{
foreach (Principal p in gp .GetMembers(recursive: true))
{
Console.WriteLine(p.Name);
}
gp .Dispose();
}
@Priyanka welcome – manish