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