次のコードサンプルを想像してみてください。
void RemoveGroup(string groupName)
{
string path = string.Format("WinNT://domain/myServer/{0}", groupName);
using (DirectoryEntry entry = new DirectoryEntry(path, @"domain\serviceAccount", @"********"))
{
using (DirectoryEntry parent = rootEntry.Parent)
{
parent.Children.Remove(entry);
// Save changes.
parent.CommitChanges();
}
}
}
このコードサンプルがLDAPプロトコルで機能するのに、WinNTでNotImplementedExceptionがスローされるのはなぜですか?例外は「CommitChanges」行でスローされます。
誰かが手がかりを得ましたか?前もって感謝します。