<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0-preview.4.20251.6" />

ConfigurationLockCollection

Contains a collection of locked configuration objects. This class cannot be inherited.
public string AttributeList { get; }

Gets a list of configuration objects contained in the collection.

public int Count { get; }

Gets the number of locked configuration objects contained in the collection.

public bool HasParentElements { get; }

Gets a value specifying whether the collection of locked objects has parent elements.

public bool IsModified { get; }

Gets a value specifying whether the collection has been modified.

public bool IsSynchronized { get; }

Gets a value specifying whether the collection is synchronized.

public object SyncRoot { get; }

Gets an object used to synchronize access to this ConfigurationLockCollection collection.

public void Add(string name)

Locks a configuration object by adding it to the collection.

public void Clear()

Clears all configuration objects from the collection.

public bool Contains(string name)

Verifies whether a specific configuration object is locked.

public void CopyTo(string[] array, int index)

Copies the entire ConfigurationLockCollection collection to a compatible one-dimensional Array, starting at the specified index of the target array.

Gets an IEnumerator object, which is used to iterate through this ConfigurationLockCollection collection.

public bool IsReadOnly(string name)

Verifies whether a specific configuration object is read-only.

public void Remove(string name)

Removes a configuration object from the collection.

public void SetFromList(string attributeList)

Locks a set of configuration objects based on the supplied list.