26 references to AdamRole
System.DirectoryServices (26)
System\DirectoryServices\ActiveDirectory\ADAMInstance.cs (10)
224
public void TransferRoleOwnership(
AdamRole
role)
228
if (role <
AdamRole
.SchemaRole || role >
AdamRole
.NamingRole)
230
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(
AdamRole
));
249
public void SeizeRoleOwnership(
AdamRole
role)
259
case
AdamRole
.SchemaRole:
264
case
AdamRole
.NamingRole:
271
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(
AdamRole
));
558
roleList.Add(
AdamRole
.SchemaRole);
565
roleList.Add(
AdamRole
.NamingRole);
System\DirectoryServices\ActiveDirectory\ConfigSet.cs (5)
318
return _cachedSchemaRoleOwner ??= GetRoleOwner(
AdamRole
.SchemaRole);
327
return _cachedNamingRoleOwner ??= GetRoleOwner(
AdamRole
.NamingRole);
577
private AdamInstance GetRoleOwner(
AdamRole
role)
586
case
AdamRole
.SchemaRole:
592
case
AdamRole
.NamingRole:
System\DirectoryServices\ActiveDirectory\RoleOwnerCollection.cs (11)
79
public
AdamRole
this[int index] => (
AdamRole
)InnerList[index]!;
81
public bool Contains(
AdamRole
role)
83
if (role <
AdamRole
.SchemaRole || role >
AdamRole
.NamingRole)
85
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(
AdamRole
));
99
public int IndexOf(
AdamRole
role)
101
if (role <
AdamRole
.SchemaRole || role >
AdamRole
.NamingRole)
103
throw new InvalidEnumArgumentException(nameof(role), (int)role, typeof(
AdamRole
));
119
public void CopyTo(
AdamRole
[] roles, int index)