Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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 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.
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. (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

Community Additions

ADD
Show:
© 2015 Microsoft