public bool IsReadOnly(string name)
{
for (int i = 0; i < _names.Count; i++)
{
if ((string)_names[i] == name)
{
/* this test used to switch off whether the collection was 'Exclude' or not
* (the LockAll*Except collections), but that doesn't seem to be the crux of
* it. maybe this returns true if the element/attribute is locked in a parent
* element's lock collections? */
return false;
}
}
throw new ServerManagerException(String.Format("The entry '{0}' is not in the collection.", name));
}