1 instantiation of ComputerPrincipal
System.DirectoryServices.AccountManagement (1)
System\DirectoryServices\AccountManagement\Computer.cs (1)
100
ComputerPrincipal computer = new
ComputerPrincipal
(ctx);
85 references to ComputerPrincipal
System.DirectoryServices.AccountManagement (85)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (6)
269
TypeToLdapDict.Add(typeof(
ComputerPrincipal
), computerPrincipalPropList);
739
principalType.IsSubclassOf(typeof(
ComputerPrincipal
)))
803
if ((principalType == typeof(
ComputerPrincipal
)) || (principalType.IsSubclassOf(typeof(
ComputerPrincipal
))))
928
if ((p.GetType() == typeof(
ComputerPrincipal
)) || (p.GetType().IsSubclassOf(typeof(
ComputerPrincipal
))))
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (5)
56
else if (principalType == typeof(
ComputerPrincipal
))
74
principalType.IsSubclassOf(typeof(
ComputerPrincipal
)))
488
BuildPropertySet(typeof(
ComputerPrincipal
), ds.PropertiesToLoad);
1532
(memberType != typeof(
ComputerPrincipal
)) && (!memberType.IsSubclassOf(typeof(
ComputerPrincipal
))) &&
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_Query.cs (3)
65
else if (p.IsSubclassOf(typeof(
ComputerPrincipal
)))
67
baseType = typeof(
ComputerPrincipal
);
195
else if (principalType == typeof(
ComputerPrincipal
))
System\DirectoryServices\AccountManagement\AD\SDSUtils.cs (7)
35
else if (typeof(
ComputerPrincipal
) == principalType)
37
p =
ComputerPrincipal
.MakeComputer(owningContext);
49
p =
ComputerPrincipal
.MakeComputer(owningContext);
93
else if (typeof(
ComputerPrincipal
) == principalType)
95
p =
ComputerPrincipal
.MakeComputer(owningContext);
107
p =
ComputerPrincipal
.MakeComputer(owningContext);
214
(!(p is
ComputerPrincipal
)))
System\DirectoryServices\AccountManagement\Computer.cs (20)
18
if (Context.ContextType == ContextType.ApplicationDirectory && this.GetType() == typeof(
ComputerPrincipal
))
30
if (Context.ContextType == ContextType.ApplicationDirectory && this.GetType() == typeof(
ComputerPrincipal
))
60
public static new PrincipalSearchResult<
ComputerPrincipal
> FindByLockoutTime(PrincipalContext context, DateTime time, MatchType type)
62
return FindByLockoutTime<
ComputerPrincipal
>(context, time, type);
65
public static new PrincipalSearchResult<
ComputerPrincipal
> FindByLogonTime(PrincipalContext context, DateTime time, MatchType type)
67
return FindByLogonTime<
ComputerPrincipal
>(context, time, type);
70
public static new PrincipalSearchResult<
ComputerPrincipal
> FindByExpirationTime(PrincipalContext context, DateTime time, MatchType type)
72
return FindByExpirationTime<
ComputerPrincipal
>(context, time, type);
75
public static new PrincipalSearchResult<
ComputerPrincipal
> FindByBadPasswordAttempt(PrincipalContext context, DateTime time, MatchType type)
77
return FindByBadPasswordAttempt<
ComputerPrincipal
>(context, time, type);
80
public static new PrincipalSearchResult<
ComputerPrincipal
> FindByPasswordSetTime(PrincipalContext context, DateTime time, MatchType type)
82
return FindByPasswordSetTime<
ComputerPrincipal
>(context, time, type);
85
public static new
ComputerPrincipal
FindByIdentity(PrincipalContext context, string identityValue)
87
return (
ComputerPrincipal
)FindByIdentityWithType(context, typeof(
ComputerPrincipal
), identityValue);
90
public static new
ComputerPrincipal
FindByIdentity(PrincipalContext context, IdentityType identityType, string identityValue)
92
return (
ComputerPrincipal
)FindByIdentityWithType(context, typeof(
ComputerPrincipal
), identityType, identityValue);
98
internal static
ComputerPrincipal
MakeComputer(PrincipalContext ctx)
100
ComputerPrincipal
computer = new ComputerPrincipal(ctx);
System\DirectoryServices\AccountManagement\Context.cs (2)
1231
else if (t == typeof(System.DirectoryServices.AccountManagement.
ComputerPrincipal
) || t.IsSubclassOf(typeof(System.DirectoryServices.AccountManagement.
ComputerPrincipal
)))
System\DirectoryServices\AccountManagement\PrincipalCollection.cs (3)
238
public void Add(
ComputerPrincipal
computer)
361
public bool Remove(
ComputerPrincipal
computer)
556
public bool Contains(
ComputerPrincipal
computer)
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx.cs (10)
49
s_maskMap.Add(typeof(
ComputerPrincipal
), ObjectMask.Computer);
86
else if (principalType == typeof(
ComputerPrincipal
))
416
if (p is
ComputerPrincipal
)
455
Debug.Assert(p is UserPrincipal || p is
ComputerPrincipal
);
461
if (p is
ComputerPrincipal
)
480
Debug.Assert(p is UserPrincipal || p is
ComputerPrincipal
);
486
if (p is
ComputerPrincipal
)
507
if (p is
ComputerPrincipal
)
521
if (p is
ComputerPrincipal
)
532
Debug.Assert(p is UserPrincipal || p is
ComputerPrincipal
);
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (26)
96
Debug.Assert(principalType == typeof(
ComputerPrincipal
));
244
Debug.Assert(principalType == typeof(
ComputerPrincipal
));
302
Debug.Assert(principalType == typeof(
ComputerPrincipal
));
554
else if (principalType == typeof(
ComputerPrincipal
) || principalType.IsSubclassOf(typeof(
ComputerPrincipal
)))
557
principalType = typeof(
ComputerPrincipal
);
605
else 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)
122
else if (principalType == typeof(
ComputerPrincipal
) || principalType.IsSubclassOf(typeof(
ComputerPrincipal
)))
System\DirectoryServices\AccountManagement\StoreCtx.cs (1)
350
if (p is
ComputerPrincipal
)