4 writes to UnderlyingObject
System.DirectoryServices.AccountManagement (4)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (2)
167
p.
UnderlyingObject
= de;
296
p.
UnderlyingObject
= (targetIsFromGC ? dcEntry : sr.GetDirectoryEntry());
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (1)
128
p.
UnderlyingObject
= de;
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (1)
74
p.
UnderlyingObject
= de;
92 references to UnderlyingObject
System.DirectoryServices.AccountManagement (92)
System\DirectoryServices\AccountManagement\AD\ADAMStoreCtx.cs (6)
67
DirectoryEntry de = (DirectoryEntry)ap.
UnderlyingObject
;
167
Debug.Assert(p.
UnderlyingObject
!= null);
169
DirectoryEntry principalDE = (DirectoryEntry)p.
UnderlyingObject
;
184
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
218
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
243
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (9)
757
string groupDN = (string)((DirectoryEntry)foreignPrincipal.
UnderlyingObject
).Properties["distinguishedName"].Value;
821
Debug.Assert(foreignGroup.
UnderlyingObject
is DirectoryEntry);
822
Debug.Assert(((DirectoryEntry)foreignGroup.
UnderlyingObject
).Path.StartsWith("LDAP:", StringComparison.Ordinal));
828
_membersQueue.Enqueue(new RangeRetriever((DirectoryEntry)foreignGroup.
UnderlyingObject
, "member", true));
830
string groupDN = (string)((DirectoryEntry)foreignGroup.
UnderlyingObject
).Properties["distinguishedName"].Value;
851
Debug.Assert(foreignGroup.
UnderlyingObject
is DirectoryEntry);
852
Debug.Assert(((DirectoryEntry)foreignGroup.
UnderlyingObject
).Path.StartsWith("LDAP:", StringComparison.Ordinal));
857
DirectorySearcher ds = SDSUtils.ConstructSearcher((DirectoryEntry)foreignGroup.
UnderlyingObject
);
865
string groupDN = (string)((DirectoryEntry)foreignGroup.
UnderlyingObject
).Properties["distinguishedName"].Value;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (36)
379
LoadDirectoryEntryAttributes((DirectoryEntry)p.
UnderlyingObject
);
390
Debug.Assert(p.
UnderlyingObject
!= null); // since we just persisted it
391
Debug.Assert(p.
UnderlyingObject
is DirectoryEntry);
393
ADStoreKey key = new ADStoreKey(((DirectoryEntry)p.
UnderlyingObject
).Guid);
399
GlobalDebug.WriteLineIf(GlobalDebug.Info, "ADStoreCtx", "Insert: new GUID is ", ((DirectoryEntry)p.
UnderlyingObject
).Guid);
411
if (null != p.
UnderlyingObject
)
413
SDSUtils.DeleteDirectoryEntry((DirectoryEntry)p.
UnderlyingObject
);
610
DirectoryEntry de = (DirectoryEntry)ap.
UnderlyingObject
;
665
Debug.Assert(p.
UnderlyingObject
!= null);
666
Debug.Assert(p.
UnderlyingObject
is DirectoryEntry);
700
Debug.Assert(p.
UnderlyingObject
!= null);
702
Debug.Assert(p.
UnderlyingObject
is DirectoryEntry);
703
SDSUtils.DeleteDirectoryEntry((DirectoryEntry)p.
UnderlyingObject
);
799
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
829
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
905
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
934
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
977
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
986
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
1162
Debug.Assert(p.
UnderlyingObject
!= null);
1609
DirectoryEntry principalDE = (DirectoryEntry)p.
UnderlyingObject
;
1638
Debug.Assert(g.
UnderlyingObject
!= null);
1642
DirectoryEntry groupDE = (DirectoryEntry)g.
UnderlyingObject
;
1680
dsMembers[0] = SDSUtils.ConstructSearcher((DirectoryEntry)g.
UnderlyingObject
);
1744
Debug.Assert(g.
UnderlyingObject
!= null && g.
UnderlyingObject
is DirectoryEntry);
1751
Debug.Assert(p.
UnderlyingObject
!= null && p.
UnderlyingObject
is DirectoryEntry);
1756
DirectoryEntry principalDE = (DirectoryEntry)p.
UnderlyingObject
;
1757
DirectoryEntry groupDE = (DirectoryEntry)g.
UnderlyingObject
;
1882
Debug.Assert(g.
UnderlyingObject
!= null);
1883
DirectoryEntry groupDE = (DirectoryEntry)g.
UnderlyingObject
;
1983
Debug.Assert(g.
UnderlyingObject
!= null);
1984
Debug.Assert(member.
UnderlyingObject
!= null);
1985
DirectoryEntry groupDE = (DirectoryEntry)g.
UnderlyingObject
;
1986
DirectoryEntry memberDE = (DirectoryEntry)member.
UnderlyingObject
;
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (8)
37
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
353
Debug.Assert(p.
UnderlyingObject
!= null);
354
Debug.Assert(p.
UnderlyingObject
is DirectoryEntry);
361
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
403
Debug.Assert(p.
UnderlyingObject
!= null);
404
Debug.Assert(p.
UnderlyingObject
is DirectoryEntry);
406
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
1659
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (1)
282
Debug.Assert(de == p.
UnderlyingObject
);
System\DirectoryServices\AccountManagement\Group.cs (1)
367
DirectoryEntry de = (DirectoryEntry)this.
UnderlyingObject
;
System\DirectoryServices\AccountManagement\Principal.cs (5)
495
if (this.
UnderlyingObject
== null)
500
return this.
UnderlyingObject
;
587
if ((this.
UnderlyingObject
!= null) && (this.
UnderlyingObject
is IDisposable))
590
((IDisposable)this.
UnderlyingObject
).Dispose();
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (19)
236
((DirectoryEntry)p.
UnderlyingObject
).RefreshCache();
241
Debug.Assert(p.
UnderlyingObject
!= null); // since we just persisted it
242
Debug.Assert(p.
UnderlyingObject
is DirectoryEntry);
243
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
271
Debug.Assert(p.
UnderlyingObject
!= null);
272
Debug.Assert(p.
UnderlyingObject
is DirectoryEntry);
301
Debug.Assert(p.
UnderlyingObject
!= null);
303
Debug.Assert(p.
UnderlyingObject
is DirectoryEntry);
307
SDSUtils.DeleteDirectoryEntry((DirectoryEntry)p.
UnderlyingObject
);
373
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
389
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
422
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
470
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
496
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
536
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
624
Debug.Assert(p.
UnderlyingObject
!= null);
626
DirectoryEntry userDE = (DirectoryEntry)p.
UnderlyingObject
;
760
Debug.Assert(g.
UnderlyingObject
!= null);
762
DirectoryEntry groupDE = (DirectoryEntry)g.
UnderlyingObject
;
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (7)
33
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
226
Debug.Assert(p.
UnderlyingObject
!= null);
227
Debug.Assert(p.
UnderlyingObject
is DirectoryEntry);
229
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;
277
Debug.Assert(p.
UnderlyingObject
!= null);
278
Debug.Assert(p.
UnderlyingObject
is DirectoryEntry);
280
DirectoryEntry de = (DirectoryEntry)p.
UnderlyingObject
;