.NET Framework Class Library
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.

Methods

  NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetSectionReturns the specified ConfigurationSection object.
Public methodGetSectionGroupGets the specified ConfigurationSectionGroup object.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSaveOverloaded. Writes the configuration settings contained within this Configuration object to the current XML configuration file.
Public methodSaveAsOverloaded. Writes the configuration settings contained within this Configuration object to the specified XML configuration file.
Public methodToStringReturns a String that represents the current Object. (Inherited from Object.)
Top
Properties

  NameDescription
Public propertyAppSettingsGets the AppSettingsSection object configuration section that applies to this Configuration object.
Public propertyConnectionStringsGets a ConnectionStringsSection configuration-section object that applies to this Configuration object.
Public propertyEvaluationContextGets the ContextInformation object for the Configuration object.
Public propertyFilePathGets the physical path to the configuration file represented by this Configuration object.
Public propertyHasFileGets a value that indicates whether a file exists for the resource represented by this Configuration object.
Public propertyLocationsGets the locations defined within this Configuration object.
Public propertyNamespaceDeclaredGets or sets a value indicating whether the configuration file has an XML namespace.
Public propertyRootSectionGroupGets the root ConfigurationSectionGroup for this Configuration object.
Public propertySectionGroupsGets a collection of the section groups defined by this configuration.
Public propertySectionsGets a collection of the sections defined by this Configuration object.
Top
See Also

Reference

Tags :


Page view tracker