Returns a custom object when overridden in a derived class.
Assembly: System.Configuration (in System.Configuration.dll)
When the GetSection method is called at run time, the configuration system first creates an appropriate instance of the ConfigurationSection class, and then returns the object it obtains from the method.
By default, simply returns the object that represents the ConfigurationSection from which it is called.Notes to Implementers
You can override the method to return a custom type at run time.
For example, to restrict runtime modification of the settings in the ConfigurationSection class, you can override and return a custom type that enforces restrictions on which settings can be modified, if any.
If the runtime object is internal only, the returned object cannot be used outside the assembly that defines it. One way to create an object that derives from ConfigurationSection and can only be accessed by code in your assembly at run time is to create an internal runtime object that has a method that returns your ConfigurationSection implementation.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)