36 references to ActiveDirectoryRole
System.DirectoryServices (36)
System\DirectoryServices\ActiveDirectory\Domain.cs (7)
901
_cachedPdcRoleOwner ??= GetRoleOwner(
ActiveDirectoryRole
.PdcRole);
911
return _cachedRidRoleOwner ??= GetRoleOwner(
ActiveDirectoryRole
.RidRole);
920
return _cachedInfrastructureRoleOwner ??= GetRoleOwner(
ActiveDirectoryRole
.InfrastructureRole);
1031
private DomainController GetRoleOwner(
ActiveDirectoryRole
role)
1040
case
ActiveDirectoryRole
.PdcRole:
1045
case
ActiveDirectoryRole
.RidRole:
1050
case
ActiveDirectoryRole
.InfrastructureRole:
System\DirectoryServices\ActiveDirectory\DomainController.cs (13)
313
public void TransferRoleOwnership(
ActiveDirectoryRole
role)
317
if (role <
ActiveDirectoryRole
.SchemaRole || role >
ActiveDirectoryRole
.InfrastructureRole)
319
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(
ActiveDirectoryRole
));
338
public void SeizeRoleOwnership(
ActiveDirectoryRole
role)
348
case
ActiveDirectoryRole
.SchemaRole:
353
case
ActiveDirectoryRole
.NamingRole:
358
case
ActiveDirectoryRole
.PdcRole:
363
case
ActiveDirectoryRole
.RidRole:
368
case
ActiveDirectoryRole
.InfrastructureRole:
374
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(
ActiveDirectoryRole
));
384
if (role ==
ActiveDirectoryRole
.RidRole)
1259
roleList.Add((
ActiveDirectoryRole
)i);
System\DirectoryServices\ActiveDirectory\Forest.cs (5)
740
return _cachedSchemaRoleOwner ??= GetRoleOwner(
ActiveDirectoryRole
.SchemaRole);
749
return _cachedNamingRoleOwner ??= GetRoleOwner(
ActiveDirectoryRole
.NamingRole);
789
private DomainController GetRoleOwner(
ActiveDirectoryRole
role)
798
case
ActiveDirectoryRole
.SchemaRole:
804
case
ActiveDirectoryRole
.NamingRole:
System\DirectoryServices\ActiveDirectory\RoleOwnerCollection.cs (11)
21
public
ActiveDirectoryRole
this[int index] => (
ActiveDirectoryRole
)InnerList[index]!;
23
public bool Contains(
ActiveDirectoryRole
role)
25
if (role <
ActiveDirectoryRole
.SchemaRole || role >
ActiveDirectoryRole
.InfrastructureRole)
27
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(
ActiveDirectoryRole
));
41
public int IndexOf(
ActiveDirectoryRole
role)
43
if (role <
ActiveDirectoryRole
.SchemaRole || role >
ActiveDirectoryRole
.InfrastructureRole)
45
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(
ActiveDirectoryRole
));
61
public void CopyTo(
ActiveDirectoryRole
[] roles, int index)