1 instantiation of ComputerPrincipal
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\Computer.cs (1)
100ComputerPrincipal computer = new ComputerPrincipal(ctx);
85 references to ComputerPrincipal
System.DirectoryServices.AccountManagement (85)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (6)
269TypeToLdapDict.Add(typeof(ComputerPrincipal), computerPrincipalPropList); 739principalType.IsSubclassOf(typeof(ComputerPrincipal))) 803if ((principalType == typeof(ComputerPrincipal)) || (principalType.IsSubclassOf(typeof(ComputerPrincipal)))) 928if ((p.GetType() == typeof(ComputerPrincipal)) || (p.GetType().IsSubclassOf(typeof(ComputerPrincipal))))
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (5)
56else if (principalType == typeof(ComputerPrincipal)) 74principalType.IsSubclassOf(typeof(ComputerPrincipal))) 488BuildPropertySet(typeof(ComputerPrincipal), ds.PropertiesToLoad); 1532(memberType != typeof(ComputerPrincipal)) && (!memberType.IsSubclassOf(typeof(ComputerPrincipal))) &&
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (3)
65else if (p.IsSubclassOf(typeof(ComputerPrincipal))) 67baseType = typeof(ComputerPrincipal); 195else if (principalType == typeof(ComputerPrincipal))
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (7)
35else if (typeof(ComputerPrincipal) == principalType) 37p = ComputerPrincipal.MakeComputer(owningContext); 49p = ComputerPrincipal.MakeComputer(owningContext); 93else if (typeof(ComputerPrincipal) == principalType) 95p = ComputerPrincipal.MakeComputer(owningContext); 107p = ComputerPrincipal.MakeComputer(owningContext); 214(!(p is ComputerPrincipal)))
System\DirectoryServices\AccountManagement\Computer.cs (20)
18if (Context.ContextType == ContextType.ApplicationDirectory && this.GetType() == typeof(ComputerPrincipal)) 30if (Context.ContextType == ContextType.ApplicationDirectory && this.GetType() == typeof(ComputerPrincipal)) 60public static new PrincipalSearchResult<ComputerPrincipal> FindByLockoutTime(PrincipalContext context, DateTime time, MatchType type) 62return FindByLockoutTime<ComputerPrincipal>(context, time, type); 65public static new PrincipalSearchResult<ComputerPrincipal> FindByLogonTime(PrincipalContext context, DateTime time, MatchType type) 67return FindByLogonTime<ComputerPrincipal>(context, time, type); 70public static new PrincipalSearchResult<ComputerPrincipal> FindByExpirationTime(PrincipalContext context, DateTime time, MatchType type) 72return FindByExpirationTime<ComputerPrincipal>(context, time, type); 75public static new PrincipalSearchResult<ComputerPrincipal> FindByBadPasswordAttempt(PrincipalContext context, DateTime time, MatchType type) 77return FindByBadPasswordAttempt<ComputerPrincipal>(context, time, type); 80public static new PrincipalSearchResult<ComputerPrincipal> FindByPasswordSetTime(PrincipalContext context, DateTime time, MatchType type) 82return FindByPasswordSetTime<ComputerPrincipal>(context, time, type); 85public static new ComputerPrincipal FindByIdentity(PrincipalContext context, string identityValue) 87return (ComputerPrincipal)FindByIdentityWithType(context, typeof(ComputerPrincipal), identityValue); 90public static new ComputerPrincipal FindByIdentity(PrincipalContext context, IdentityType identityType, string identityValue) 92return (ComputerPrincipal)FindByIdentityWithType(context, typeof(ComputerPrincipal), identityType, identityValue); 98internal static ComputerPrincipal MakeComputer(PrincipalContext ctx) 100ComputerPrincipal computer = new ComputerPrincipal(ctx);
System\DirectoryServices\AccountManagement\Context.cs (2)
1231else if (t == typeof(System.DirectoryServices.AccountManagement.ComputerPrincipal) || t.IsSubclassOf(typeof(System.DirectoryServices.AccountManagement.ComputerPrincipal)))
System\DirectoryServices\AccountManagement\PrincipalCollection.cs (3)
238public void Add(ComputerPrincipal computer) 361public bool Remove(ComputerPrincipal computer) 556public bool Contains(ComputerPrincipal computer)
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (10)
49s_maskMap.Add(typeof(ComputerPrincipal), ObjectMask.Computer); 86else if (principalType == typeof(ComputerPrincipal)) 416if (p is ComputerPrincipal) 455Debug.Assert(p is UserPrincipal || p is ComputerPrincipal); 461if (p is ComputerPrincipal) 480Debug.Assert(p is UserPrincipal || p is ComputerPrincipal); 486if (p is ComputerPrincipal) 507if (p is ComputerPrincipal) 521if (p is ComputerPrincipal) 532Debug.Assert(p is UserPrincipal || p is ComputerPrincipal);
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (26)
96Debug.Assert(principalType == typeof(ComputerPrincipal)); 244Debug.Assert(principalType == typeof(ComputerPrincipal)); 302Debug.Assert(principalType == typeof(ComputerPrincipal)); 554else if (principalType == typeof(ComputerPrincipal) || principalType.IsSubclassOf(typeof(ComputerPrincipal))) 557principalType = typeof(ComputerPrincipal); 605else if ((principalType == typeof(ComputerPrincipal)) && SAMUtils.IsOfObjectClass(de, "Computer")) 698{PropertyNames.PrincipalDisplayName, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 700{PropertyNames.PrincipalDescription, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 702{PropertyNames.AuthenticablePrincipalEnabled, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 704{PropertyNames.AuthenticablePrincipalCertificates, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 706{PropertyNames.ComputerServicePrincipalNames, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 708{PropertyNames.AcctInfoPermittedWorkstations, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 709{PropertyNames.AcctInfoPermittedLogonTimes, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 710{PropertyNames.AcctInfoExpirationDate, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 711{PropertyNames.AcctInfoSmartcardRequired, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 712{PropertyNames.AcctInfoDelegationPermitted, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 713{PropertyNames.AcctInfoHomeDirectory, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 714{PropertyNames.AcctInfoHomeDrive, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 715{PropertyNames.AcctInfoScriptPath, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 717{PropertyNames.PwdInfoPasswordNotRequired, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 718{PropertyNames.PwdInfoPasswordNeverExpires, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 719{PropertyNames.PwdInfoCannotChangePassword, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)}, 720{PropertyNames.PwdInfoAllowReversiblePasswordEncryption, typeof(ComputerPrincipal), null, null, new ToWinNTConverterDelegate(ExceptionToWinNTConverter)} 1072(memberType != typeof(ComputerPrincipal)) && (!memberType.IsSubclassOf(typeof(ComputerPrincipal))) &&
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_Query.cs (2)
122else if (principalType == typeof(ComputerPrincipal) || principalType.IsSubclassOf(typeof(ComputerPrincipal)))
System\DirectoryServices\AccountManagement\StoreCtx.cs (1)
350if (p is ComputerPrincipal)