ClientConfigurationCollection Class

Summary

This class encapsulates the Mercurial command line client configuration information.
Assembly
Mercurial.Net.dll
Namespace
Mercurial.Configuration
Interfaces
  • IEnumerable<T>
  • IEnumerable
Base Types
  • object
graph TD Base0["object"]-->Type Interface0["IEnumerable<T>"]-.->Type Interface1["IEnumerable"]-.->Type Type["ClientConfigurationCollection"] class Type type-node

Syntax

public sealed class ClientConfigurationCollection : IEnumerable<ConfigurationEntry>, IEnumerable

Constructors

Properties

Name Value Summary
Sections IEnumerable<T>
Gets a collection of section names from the configuration.

Methods

Name Value Summary
GetEnumerator() IEnumerator<T>
Returns an enumerator that iterates through the collection.
GetNamesForSection(string) IEnumerable<T>
Gets a collection of configuration entry names for the given section, or an empty collection if no such section exists.
GetValue(string, string) string
Gets the value of the specified configuration entry from the specified section.
Refresh() void
Refreshes the client configuration information by calling the Mercurial command line client and asking it to report the current configuration.
ValueExists(string, string) bool
Gets whether a specific value exists in the configuration file. Note that the value of the configuration entry can be empty (ie. System.String.Empty), all this method checks is whether there was a line with "section.name=" present.