Compartilhar via


SPWebService.ApplyApplicationContentToLocalServer Method

Copies the resource files and DLLs of provisioned Web applications in the Web service to folders within C:\Inetpub\wwwroot\wss\VirtualDirectories.

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

Syntax

'Declaration
Public Sub ApplyApplicationContentToLocalServer
'Usage
Dim instance As SPWebService

instance.ApplyApplicationContentToLocalServer()
public void ApplyApplicationContentToLocalServer()

Remarks

Calling the ApplyApplicationContentToLocalServer method copies, for example, the layouts.sitemap file to the \VirtualDirectories\_app_bin directory, and it merges content with the web.config file in the root virtual directory of the SharePoint Web application.

Only local administrators can call this method.

See Also

Reference

SPWebService Class

SPWebService Members

Microsoft.SharePoint.Administration Namespace