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 following tables list the members exposed by the Configuration type.

  Name Description
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 Indicates whether a configuration 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.
Top

(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (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.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (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

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top
Show: