82 references to Name
System.DirectoryServices (79)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryPartition.cs (1)
53public override string ToString() => Name;
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchema.cs (1)
378return DirectoryEntryManager.GetDirectoryEntry(context, Name);
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (9)
365directoryServer = ConfigurationSet.FindOneAdamInstance(context, Name, null); 391directoryServer = ConfigurationSet.FindOneAdamInstance(context, Name, siteName); 416directoryServer = ConfigurationSet.FindOneAdamInstance(context, Name, null); 443directoryServer = ConfigurationSet.FindOneAdamInstance(context, Name, siteName); 466directoryServers.AddRange(ConfigurationSet.FindAdamInstances(context, Name, null)); 491directoryServers.AddRange(ConfigurationSet.FindAdamInstances(context, Name, siteName)); 738return DirectoryEntryManager.GetDirectoryEntry(context, Name); 1109_crossRefEntry = Utils.GetCrossRefEntry(context, partitionsEntry, Name); 1201foreach (string dcName in Utils.GetReplicaList(context, Name, siteName, false /* isDefaultNC */, false /* isADAM */, false /* mustBeGC */))
System\DirectoryServices\ActiveDirectory\ApplicationPartitionCollection.cs (4)
29if (Utils.Compare(tmp.Name, applicationPartition.Name) == 0) 44if (Utils.Compare(tmp.Name, applicationPartition.Name) == 0)
System\DirectoryServices\ActiveDirectory\Domain.cs (59)
414return DomainController.FindOneInternal(context, Name, null, 0); 423return DomainController.FindOneInternal(context, Name, siteName, 0); 430return DomainController.FindOneInternal(context, Name, null, flag); 439return DomainController.FindOneInternal(context, Name, siteName, flag); 446return DomainController.FindAllInternal(context, Name, true /*isDnsDomainName */, null); 455return DomainController.FindAllInternal(context, Name, true /*isDnsDomainName */, siteName); 463return new DomainControllerCollection(Locator.EnumerateDomainControllers(context, Name, null, (long)flag)); 479return new DomainControllerCollection(Locator.EnumerateDomainControllers(context, Name, siteName, (long)flag)); 493TrustRelationshipInformationCollection collection = new TrustRelationshipInformationCollection(context, Name, trusts); 508TrustRelationshipInformationCollection collection = new TrustRelationshipInformationCollection(context, Name, trusts); 512throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.DomainTrustDoesNotExist, Name, targetDomainName), typeof(TrustRelationshipInformation), null); 531return TrustHelper.GetTrustedDomainInfoStatus(context, Name, targetDomainName, Interop.Advapi32.TRUST_ATTRIBUTE.TRUST_ATTRIBUTE_CROSS_ORGANIZATION, false); 544TrustHelper.SetTrustedDomainInfoStatus(context, Name, targetDomainName, Interop.Advapi32.TRUST_ATTRIBUTE.TRUST_ATTRIBUTE_CROSS_ORGANIZATION, enable, false); 557return TrustHelper.GetTrustedDomainInfoStatus(context, Name, targetDomainName, Interop.Advapi32.TRUST_ATTRIBUTE.TRUST_ATTRIBUTE_QUARANTINED_DOMAIN, false); 570TrustHelper.SetTrustedDomainInfoStatus(context, Name, targetDomainName, Interop.Advapi32.TRUST_ATTRIBUTE.TRUST_ATTRIBUTE_QUARANTINED_DOMAIN, enable, false); 584TrustHelper.DeleteTrust(context, Name, targetDomainName, false); 595TrustHelper.DeleteTrust(targetDomain.GetDirectoryContext(), targetDomain.Name, Name, false); 598TrustHelper.DeleteTrust(context, Name, targetDomain.Name, false); 611TrustHelper.VerifyTrust(context, Name, targetDomainName, false/*not forest*/, TrustDirection.Outbound, false/*just TC verification*/, null /* no need to go to specific server*/); 629TrustHelper.VerifyTrust(context, Name, targetDomain.Name, false/*not forest*/, TrustDirection.Outbound, false/*just TC verification*/, null /* no need to go to specific server*/); 633throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.WrongTrustDirection, Name, targetDomain.Name, direction), typeof(TrustRelationshipInformation), null); 642TrustHelper.VerifyTrust(targetDomain.GetDirectoryContext(), targetDomain.Name, Name, false/*not forest*/, TrustDirection.Outbound, false/*just TC verification*/, null /* no need to go to specific server*/); 646throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.WrongTrustDirection, Name, targetDomain.Name, direction), typeof(TrustRelationshipInformation), null); 675TrustHelper.CreateTrust(context, Name, targetContext, targetDomainName, false, direction, trustPassword); 691TrustHelper.CreateTrust(context, Name, targetDomain.GetDirectoryContext(), targetDomain.Name, false, direction, password); 700TrustHelper.CreateTrust(targetDomain.GetDirectoryContext(), targetDomain.Name, context, Name, false, (TrustDirection)reverseDirection, password); 719TrustHelper.UpdateTrust(context, Name, targetDomainName, newTrustPassword, false); 741TrustHelper.UpdateTrustDirection(context, Name, targetDomainName, newTrustPassword, false /*not a forest*/, newTrustDirection); 757TrustHelper.UpdateTrustDirection(context, Name, targetDomain.Name, password, false /* not a forest */, newTrustDirection); 766TrustHelper.UpdateTrustDirection(targetDomain.GetDirectoryContext(), targetDomain.Name, Name, password, false /* not a forest */, reverseDirection); 781direction = GetTrustRelationship(targetDomain.Name!).TrustDirection; 786TrustHelper.VerifyTrust(context, Name, targetDomain.Name, false /*not forest*/, TrustDirection.Outbound, true /*reset secure channel*/, null /* no need to go to specific server*/); 792TrustHelper.VerifyTrust(targetDomain.GetDirectoryContext(), targetDomain.Name, Name, false /*not forest*/, TrustDirection.Outbound, true/*reset secure channel*/, null /* no need to go to specific server*/); 807throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.WrongTrustDirection, Name, targetDomain.Name, direction), typeof(TrustRelationshipInformation), null); 1435string targetServerName = TrustHelper.UpdateTrust(targetDomain.GetDirectoryContext(), targetDomain.Name, Name, password, false); 1438string sourceServerName = TrustHelper.UpdateTrust(context, Name, targetDomain.Name, password, false); 1447TrustHelper.VerifyTrust(context, Name, targetDomain.Name, false /*not forest*/, TrustDirection.Outbound, true /*reset secure channel*/, targetServerName /* need to specify which target server */); 1451throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.WrongTrustDirection, Name, targetDomain.Name, direction), typeof(TrustRelationshipInformation), null); 1460TrustHelper.VerifyTrust(targetDomain.GetDirectoryContext(), targetDomain.Name, Name, false /*not forest*/, TrustDirection.Outbound, true/*reset secure channel*/, sourceServerName /* need to specify which target server */); 1464throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.WrongTrustDirection, Name, targetDomain.Name, direction), typeof(TrustRelationshipInformation), null);
System\DirectoryServices\ActiveDirectory\DomainCollection.cs (4)
33if (Utils.Compare(tmp.Name, domain.Name) == 0) 49if (Utils.Compare(tmp.Name, domain.Name) == 0)
System\DirectoryServices\ActiveDirectory\DomainController.cs (1)
1066fixed (char* domainName = Domain.Name)
System.DirectoryServices.AccountManagement (3)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (2)
1206if (string.Equals(this.DnsDomainName, g.Domain.Name, StringComparison.OrdinalIgnoreCase)) 1215if (!string.Equals(this.DnsDomainName, gc.Domain.Name, StringComparison.OrdinalIgnoreCase))
System\DirectoryServices\AccountManagement\AD\ADUtils.cs (1)
456if (string.Equals(currentDom.Name, targetDomain, StringComparison.OrdinalIgnoreCase))