3 writes to _crossRefEntry
System.DirectoryServices (3)
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (3)
87
_crossRefEntry
= null;
1029
_crossRefEntry
= partitionsEntry.Children.Add(uniqueName, "crossRef");
1109
_crossRefEntry
= Utils.GetCrossRefEntry(context, partitionsEntry, Name);
28 references to _crossRefEntry
System.DirectoryServices (28)
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (28)
84
if (
_crossRefEntry
!= null)
86
_crossRefEntry
.Dispose();
550
partitionsEntry.Children.Remove(
_crossRefEntry
);
601
_crossRefEntry
.CommitChanges();
617
DirectoryEntry partitionsEntry =
_crossRefEntry
.Parent;
620
partitionsEntry.Children.Remove(
_crossRefEntry
);
634
_crossRefEntry
.RefreshCache();
659
string crossRefDN = (string)PropertyManager.GetPropertyValue(context,
_crossRefEntry
!, PropertyManager.DistinguishedName)!;
688
_crossRefEntry
!.Properties[PropertyManager.MsDSNCReplicaLocations].AddRange(_cachedDirectoryServers.GetMultiValuedProperty());
692
_crossRefEntry
!.Properties[PropertyManager.MsDSSDReferenceDomain].Value = _securityRefDomain;
696
_crossRefEntry
!.CommitChanges();
714
Debug.Assert(
_crossRefEntry
!= null, "ApplicationPartition::Save - crossRefEntry on already committed partition which is being modified is null.");
715
_crossRefEntry
.CommitChanges();
766
_cachedDirectoryServers = new DirectoryServerCollection(context, (_committed) ?
_crossRefEntry
: null, isADAM, servers);
789
if (
_crossRefEntry
.Properties[PropertyManager.MsDSSDReferenceDomain].Count > 0)
791
return (string?)
_crossRefEntry
.Properties[PropertyManager.MsDSSDReferenceDomain].Value;
824
if (
_crossRefEntry
.Properties.Contains(PropertyManager.MsDSSDReferenceDomain))
826
_crossRefEntry
.Properties[PropertyManager.MsDSSDReferenceDomain].Clear();
832
_crossRefEntry
.Properties[PropertyManager.MsDSSDReferenceDomain].Value = value;
1014
[MemberNotNull(nameof(
_crossRefEntry
))]
1017
if (
_crossRefEntry
!= null)
1046
_crossRefEntry
.Properties[PropertyManager.DnsRoot].Value = dnsHostName;
1047
_crossRefEntry
.Properties[PropertyManager.Enabled].Value = false;
1048
_crossRefEntry
.Properties[PropertyManager.NCName].Value = distinguishedName;
1098
[MemberNotNull(nameof(
_crossRefEntry
))]
1101
if (
_crossRefEntry
!= null)
1103
return
_crossRefEntry
;
1115
return
_crossRefEntry
;