SPWebApplication.WebConfigModifications property
SharePoint 2013
Gets a collection of web.config modifications that are applied across all servers for the Web application. If the front end of the Web application is not located on the SQL server with the back end, the web.config modifications are applied only to the front end of the Web application.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Property value
Type: System.Collections.ObjectModel.Collection<SPWebConfigModification>A collection of SPWebConfigModification objects that represent the web.config modifications.
Note that SPWebConfigModification objects that are added to the collection may not be applied until the ApplyWebConfigModifications() method is called in the parent SPWebApplication object.