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