SPWebApplication.WebConfigModifications property
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.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property WebConfigModifications As Collection(Of SPWebConfigModification)
Get
'Usage
Dim instance As SPWebApplication
Dim value As Collection(Of SPWebConfigModification)
value = instance.WebConfigModifications
public Collection<SPWebConfigModification> WebConfigModifications { get; }
Property value
Type: System.Collections.ObjectModel.Collection<SPWebConfigModification>
A collection of SPWebConfigModification objects that represent the web.config modifications.
Remarks
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.