91 references to ContextType
System.DirectoryServices.AccountManagement (91)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (12)
1173
if ((p.ContextType ==
ContextType
.ApplicationDirectory) || (p.Context.ServerInformation.OsVersion == DomainControllerMode.Win2k))
1182
if (p.ContextType !=
ContextType
.ApplicationDirectory)
1190
Debug.Assert(p.ContextType ==
ContextType
.Domain);
1260
if (p.ContextType !=
ContextType
.ApplicationDirectory)
1510
Debug.Assert(foreignPrincipal.ContextType !=
ContextType
.ApplicationDirectory);
1665
if (g.Context.ContextType ==
ContextType
.ApplicationDirectory ||
1738
if (p.ContextType !=
ContextType
.Domain && p.ContextType !=
ContextType
.ApplicationDirectory)
1974
if ((g.ContextType ==
ContextType
.Domain && member.ContextType !=
ContextType
.Domain) ||
1975
(member.ContextType !=
ContextType
.Domain && member.ContextType !=
ContextType
.ApplicationDirectory))
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (4)
271
if (targetIsFromGC || OwningContext.ContextType ==
ContextType
.Domain)
1546
if (member.ContextType ==
ContextType
.Machine)
1591
Debug.Assert(member.ContextType ==
ContextType
.Domain || member.ContextType ==
ContextType
.ApplicationDirectory);
System\DirectoryServices\AccountManagement\AD\SDSCache.cs (2)
170
(_isSAM ?
ContextType
.Machine :
ContextType
.Domain),
System\DirectoryServices\AccountManagement\AuthZSet.cs (5)
314
if (_userType ==
ContextType
.Machine)
323
Debug.Assert(_userType ==
ContextType
.Domain);
362
Debug.Assert((_userType ==
ContextType
.Domain) &&
417
if (_userType ==
ContextType
.Machine)
494
private readonly
ContextType
_userType;
System\DirectoryServices\AccountManagement\Computer.cs (3)
18
if (Context.ContextType ==
ContextType
.ApplicationDirectory && this.GetType() == typeof(ComputerPrincipal))
30
if (Context.ContextType ==
ContextType
.ApplicationDirectory && this.GetType() == typeof(ComputerPrincipal))
33
if (Context.ContextType !=
ContextType
.ApplicationDirectory)
System\DirectoryServices\AccountManagement\Context.cs (46)
24
public
ContextType
contextType;
63
private readonly
ContextType
_contextType;
69
public CredentialValidator(
ContextType
contextType, string serverName, ServerProperties serverProperties)
73
if (contextType ==
ContextType
.Machine && serverName == null)
152
if (_contextType ==
ContextType
.ApplicationDirectory)
246
if (_contextType ==
ContextType
.Domain || _contextType ==
ContextType
.ApplicationDirectory)
250
if (_lastBindMethod == AuthMethod.Simple && (_fastConcurrentSupported || _contextType ==
ContextType
.ApplicationDirectory))
304
Debug.Assert(_contextType ==
ContextType
.Machine);
317
if (_contextType ==
ContextType
.Domain || _contextType ==
ContextType
.ApplicationDirectory)
356
public PrincipalContext(
ContextType
contextType) :
360
public PrincipalContext(
ContextType
contextType, string name) :
364
public PrincipalContext(
ContextType
contextType, string name, string container) :
368
public PrincipalContext(
ContextType
contextType, string name, string container, ContextOptions options) :
372
public PrincipalContext(
ContextType
contextType, string name, string userName, string password) :
376
public PrincipalContext(
ContextType
contextType, string name, string container, string userName, string password) :
381
ContextType
contextType, string name, string container, ContextOptions options, string userName, string password)
392
if (contextType ==
ContextType
.Machine && ((options & ~ContextOptions.Negotiate) != 0))
397
if ((contextType ==
ContextType
.Domain || contextType ==
ContextType
.ApplicationDirectory) &&
404
if ((contextType !=
ContextType
.Machine) &&
405
(contextType !=
ContextType
.Domain) &&
406
(contextType !=
ContextType
.ApplicationDirectory)
412
throw new InvalidEnumArgumentException(nameof(contextType), (int)contextType, typeof(
ContextType
));
415
if ((contextType ==
ContextType
.Machine) && (container != null))
418
if ((contextType ==
ContextType
.ApplicationDirectory) && ((string.IsNullOrEmpty(container)) || (string.IsNullOrEmpty(name))))
438
public
ContextType
ContextType
542
if (options != ContextOptions.Negotiate && _contextType ==
ContextType
.Machine)
571
case
ContextType
.Domain:
575
case
ContextType
.Machine:
579
case
ContextType
.ApplicationDirectory:
602
Debug.Assert(_contextType ==
ContextType
.ApplicationDirectory);
620
Debug.Assert(_contextType ==
ContextType
.Machine);
670
Debug.Assert(_contextType ==
ContextType
.Domain);
689
if (_contextType ==
ContextType
.ApplicationDirectory || _contextType ==
ContextType
.Domain)
707
if (_contextType ==
ContextType
.ApplicationDirectory)
1037
private readonly
ContextType
_contextType;
1080
if (useSSL && _contextType ==
ContextType
.Domain)
1124
properties.contextType =
ContextType
.ApplicationDirectory;
1128
properties.contextType =
ContextType
.Domain;
1142
if (properties.contextType ==
ContextType
.ApplicationDirectory)
1176
if (this.ContextType ==
ContextType
.ApplicationDirectory)
1208
private static ContextOptions GetDefaultOptionForStore(
ContextType
storeType)
1210
if (storeType ==
ContextType
.Machine)
System\DirectoryServices\AccountManagement\ExtensionAttributes.cs (6)
14
private Nullable<
ContextType
> _context;
27
public Nullable<
ContextType
> Context
44
private readonly Nullable<
ContextType
> _context;
58
public Nullable<
ContextType
> Context
71
private readonly Nullable<
ContextType
> _context;
85
public Nullable<
ContextType
> Context
System\DirectoryServices\AccountManagement\Group.cs (1)
30
if (Context.ContextType !=
ContextType
.ApplicationDirectory)
System\DirectoryServices\AccountManagement\Principal.cs (9)
42
public
ContextType
ContextType
232
ContextType
ct = (_ctx == null) ?
ContextType
.Domain : _ctx.ContextType;
234
if (ct ==
ContextType
.Machine)
251
ContextType
ct = (_ctx == null) ?
ContextType
.Domain : _ctx.ContextType;
253
if (ct ==
ContextType
.Machine)
347
if (context.ContextType ==
ContextType
.Machine || _ctx.ContextType ==
ContextType
.Machine)
System\DirectoryServices\AccountManagement\User.cs (3)
31
if (Context.ContextType !=
ContextType
.ApplicationDirectory)
183
context = new PrincipalContext(
ContextType
.Machine);
189
context = new PrincipalContext(
ContextType
.Domain);