This documentation is archived and is not being maintained.

Configuration Members

Represents a configuration file applicable to a particular computer, application, or resource. This class cannot be inherited.

The Configuration type exposes the following members.

  NameDescription
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetSection Returns the specified ConfigurationSection object.
Public method GetSectionGroup Gets the specified ConfigurationSectionGroup object.
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Save Overloaded. Writes the configuration settings contained within this Configuration object to the current XML configuration file.
Public method SaveAs Overloaded. Writes the configuration settings contained within this Configuration object to the specified XML configuration file.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property AppSettings Gets the AppSettingsSection object configuration section that applies to this Configuration object.
Public property ConnectionStrings Gets a ConnectionStringsSection configuration-section object that applies to this Configuration object.
Public property EvaluationContext Gets the ContextInformation object for the Configuration object.
Public property FilePath Gets the physical path to the configuration file represented by this Configuration object.
Public property HasFile Gets a value that indicates whether a file exists for the resource represented by this Configuration object.
Public property Locations Gets the locations defined within this Configuration object.
Public property NamespaceDeclared Gets or sets a value indicating whether the configuration file has an XML namespace.
Public property RootSectionGroup Gets the root ConfigurationSectionGroup for this Configuration object.
Public property SectionGroups Gets a collection of the section groups defined by this configuration.
Public property Sections Gets a collection of the sections defined by this Configuration object.
Top
Show: