私には苦労してきた問題があります。AD 検索結果から sidhistory プロパティを取得しようとしています。sidhistory プロパティの値を取得する方法について、光を当てたり、正しい方向に向けたりできる人はいますか?
これは私が行うことの例です....プロパティを繰り返しますが、コードをデバッグするときにsidhistoryプロパティはありません。
using (DirectoryEntry directoryEntryUser = new DirectoryEntry(searchResult.Path))
{
foreach (string propertyName in directoryEntryUser.Properties.PropertyNames)
{
PropertyValueCollection propertyValues =
directoryEntryUser.Properties[propertyName];
// And the rest of the code goes here
// to get the values.
// Sid-History or any variation never displays here
// as a property name
// however objectsid does display
}
}