SPWebService.ApplyWebConfigModifications Method

Applies the list of web.config modifications to all Web applications in this Web service across the farm.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub ApplyWebConfigModifications
'Usage
Dim instance As SPWebService

instance.ApplyWebConfigModifications()
public void ApplyWebConfigModifications()

Remarks

The ApplyWebConfigModifications method iterates through all the Web applications installed on a front-end Web server and ensures that the current set of web.config modifications are present within the web.config file.

Note

This method requires that the calling process has administrative permissions to write files to the disk on the server.

See Also

Reference

SPWebService Class

SPWebService Members

Microsoft.SharePoint.Administration Namespace