121 references to Name
System.DirectoryServices (121)
System\DirectoryServices\ActiveDirectory\ActiveDirectoryInterSiteTransport.cs (3)
33if ((context.Name == null) && (!context.isRootDomain())) 39if (context.Name != null) 72throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, context.Name));
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchema.cs (10)
99if ((context.Name == null) && (!context.isRootDomain())) 104if (context.Name != null) 111throw new ActiveDirectoryObjectNotFoundException(SR.ForestNotFound, typeof(ActiveDirectorySchema), context.Name); 115throw new ActiveDirectoryObjectNotFoundException(SR.ConfigSetNotFound, typeof(ActiveDirectorySchema), context.Name); 119throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.ServerNotFound, context.Name), typeof(ActiveDirectorySchema), null); 135throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.ServerNotFound, context.Name), typeof(ActiveDirectorySchema), null); 148throw new ActiveDirectoryObjectNotFoundException(SR.ForestNotFound, typeof(ActiveDirectorySchema), context.Name); 152throw new ActiveDirectoryObjectNotFoundException(SR.ConfigSetNotFound, typeof(ActiveDirectorySchema), context.Name); 156throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.ServerNotFound, context.Name), typeof(ActiveDirectorySchema), null); 169throw new ActiveDirectoryObjectNotFoundException(SR.ConfigSetNotFound, typeof(ActiveDirectorySchema), context.Name);
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaClass.cs (6)
53if ((context.Name == null) && (!context.isRootDomain())) 58if (context.Name != null) 125throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, context.Name)); 223if ((context.Name == null) && (!context.isRootDomain())) 228if (context.Name != null) 289throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, _context.Name));
System\DirectoryServices\ActiveDirectory\ActiveDirectorySchemaProperty.cs (6)
107if ((context.Name == null) && (!context.isRootDomain())) 112if (context.Name != null) 178throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, context.Name)); 277if ((context.Name == null) && (!context.isRootDomain())) 282if (context.Name != null) 330throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, _context.Name));
System\DirectoryServices\ActiveDirectory\ActiveDirectorySite.cs (4)
85throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, context.Name)); 156throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, context.Name)); 1112if ((context.Name == null) && (!context.isRootDomain())) 1118if (context.Name != null)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLink.cs (4)
70throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, context.Name)); 145throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, context.Name)); 672if ((context.Name == null) && (!context.isRootDomain())) 678if (context.Name != null)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySiteLinkBridge.cs (4)
61throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, context.Name)); 132throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, context.Name)); 328if ((context.Name == null) && (!context.isRootDomain())) 334if (context.Name != null)
System\DirectoryServices\ActiveDirectory\ActiveDirectorySubnet.cs (4)
43throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, context.Name)); 141throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, context.Name)); 381if ((context.Name == null) && (!context.isRootDomain())) 387if (context.Name != null)
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (7)
60Utils.SplitServerNameAndPortNumber(context.Name!, out portNumber); 128throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.AINotFound, context.Name), typeof(AdamInstance), context.Name); 143throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.AINotFound, context.Name), typeof(AdamInstance), context.Name); 153throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.AINotFound, context.Name), typeof(AdamInstance), context.Name);
System\DirectoryServices\ActiveDirectory\ApplicationPartition.cs (11)
121throw new ActiveDirectoryObjectNotFoundException(SR.NDNCNotFound, typeof(ApplicationPartition), context.Name); 128string distinguishedName = Utils.GetDNFromDnsName(context.Name!); 144throw new ActiveDirectoryObjectNotFoundException(SR.NDNCNotFound, typeof(ApplicationPartition), context.Name); 152return new ApplicationPartition(context, distinguishedName, context.Name, ApplicationPartitionType.ADApplicationPartition, directoryEntryMgr); 165if ((context.Name == null) && (!context.isRootDomain())) 170if (context.Name != null) 208throw new ActiveDirectoryOperationException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, context.Name)); 338string adamInstName = ConfigurationSet.FindOneAdamInstance(context.Name, context, distinguishedName, null).Name; 855if ((context.Name == null) || (!context.isServer())) 990tempEntry = new DirectoryEntry("LDAP://" + context.Name + "/" + distinguishedName, context.UserName, context.Password, authType); 1042dnsHostName = context.Name;
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (9)
91throw new ActiveDirectoryObjectNotFoundException(SR.ConfigSetNotFound, typeof(ConfigurationSet), context.Name); 95throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.AINotFound, context.Name), typeof(ConfigurationSet), null); 114throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.AINotFound, context.Name), typeof(ConfigurationSet), null); 127throw new ActiveDirectoryObjectNotFoundException(SR.ConfigSetNotFound, typeof(ConfigurationSet), context.Name); 131throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.AINotFound, context.Name), typeof(ConfigurationSet), null); 144throw new ActiveDirectoryObjectNotFoundException(SR.ConfigSetNotFound, typeof(ConfigurationSet), context.Name); 420str.Append(Utils.GetEscapedFilterValue(context.Name!)); // target = config set name 560throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, configSetName ?? context.Name), typeof(AdamInstance), null); 573throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.ADAMInstanceNotFoundInConfigSet, configSetName ?? context.Name), typeof(AdamInstance), null);
System\DirectoryServices\ActiveDirectory\DirectoryContext.cs (10)
84_name = context.Name; 189if ((contextType == DirectoryContextType.Domain) || ((contextType == DirectoryContextType.Forest) && (context.Name == null))) 191string? tmpTarget = context.Name; 248Debug.Assert(context.Name != null); 253errorCode = Locator.DsGetDcNameWrapper(null, context.Name, null, (long)(PrivateLocatorFlags.GCRequired | PrivateLocatorFlags.DirectoryServicesRequired), out domainControllerInfo); 259errorCode = Locator.DsGetDcNameWrapper(null, context.Name, null, (long)((PrivateLocatorFlags.GCRequired | PrivateLocatorFlags.DirectoryServicesRequired)) | (long)LocatorOptions.ForceRediscovery, out domainControllerInfo); 296Debug.Assert(context.Name != null); 301errorCode = Locator.DsGetDcNameWrapper(null, context.Name, null, (long)PrivateLocatorFlags.OnlyLDAPNeeded, out domainControllerInfo); 307errorCode = Locator.DsGetDcNameWrapper(null, context.Name, null, (long)PrivateLocatorFlags.OnlyLDAPNeeded | (long)LocatorOptions.ForceRediscovery, out domainControllerInfo); 343tempServerName = Utils.SplitServerNameAndPortNumber(context.Name!, out portNumber);
System\DirectoryServices\ActiveDirectory\Domain.cs (9)
74if ((context.Name == null) && (!context.isDomain())) 79if (context.Name != null) 86throw new ActiveDirectoryObjectNotFoundException(SR.DomainNotFound, typeof(Domain), context.Name); 90throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.DCNotFound, context.Name), typeof(Domain), null); 108throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.DCNotFound, context.Name), typeof(Domain), null); 120throw new ActiveDirectoryObjectNotFoundException(SR.DomainNotFound, typeof(Domain), context.Name); 124throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.DCNotFound, context.Name), typeof(Domain), null); 1241serverName = context.Name!; 1389DirectoryContext tmpContext = Utils.GetNewDirectoryContext(context.Name, DirectoryContextType.Forest, context);
System\DirectoryServices\ActiveDirectory\DomainController.cs (12)
139throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.DCNotFound, context.Name), typeof(DomainController), context.Name); 153throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.DCNotFound, context.Name), typeof(DomainController), context.Name); 163throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.DCNotFound, context.Name), typeof(DomainController), context.Name); 238return FindAllInternal(context, context.Name, false /* isDnsDomainName */, null); 255return FindAllInternal(context, context.Name, false /* isDnsDomainName */, siteName); 892dc = FindOneInternal(context, context.Name, siteName, flag); 909throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.DCNotFoundInDomain, context.Name), typeof(DomainController), null); 928dc = FindOneInternal(context, context.Name, siteName, flag | LocatorOptions.ForceRediscovery); 939throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.DCNotFoundInDomain, context.Name), typeof(DomainController), null);
System\DirectoryServices\ActiveDirectory\Forest.cs (7)
101if ((context.Name == null) && (!context.isRootDomain())) 106if (context.Name != null) 113throw new ActiveDirectoryObjectNotFoundException(SR.ForestNotFound, typeof(Forest), context.Name); 117throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.DCNotFound, context.Name), typeof(Forest), null); 134throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.DCNotFound, context.Name), typeof(Forest), null); 146throw new ActiveDirectoryObjectNotFoundException(SR.ForestNotFound, typeof(Forest), context.Name); 150throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.DCNotFound, context.Name), typeof(Forest), null);
System\DirectoryServices\ActiveDirectory\GlobalCatalog.cs (12)
47throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.GCNotFound, context.Name), typeof(GlobalCatalog), context.Name); 62throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.GCNotFound, context.Name), typeof(GlobalCatalog), context.Name); 69throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.GCNotFound, context.Name), typeof(GlobalCatalog), context.Name); 78throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.GCNotFound, context.Name), typeof(GlobalCatalog), context.Name); 276gc = FindOneInternal(context, context.Name, siteName, flag); 293throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.GCNotFoundInForest, context.Name), typeof(GlobalCatalog), null); 312gc = FindOneInternal(context, context.Name, siteName, flag | LocatorOptions.ForceRediscovery); 323throw new ActiveDirectoryObjectNotFoundException(SR.Format(SR.GCNotFoundInForest, context.Name), typeof(GlobalCatalog), null);
System\DirectoryServices\ActiveDirectory\ReplicationConnection.cs (1)
914if (context.Name == null || !context.isServer())
System\DirectoryServices\ActiveDirectory\Utils.cs (2)
1047serverName = context.Name!; 1063serverName = context.Name!;