Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
UnprovisionLocal method

SPIisWebServiceApplication.UnprovisionLocal method

Unprovisions the service application on the local computer.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

protected override void UnprovisionLocal(
	SPServiceInstance serviceInstance


Type: Microsoft.SharePoint.Administration.SPServiceInstance

Represents a single instance of a service that runs on a server.


serviceInstance is a null reference (Nothing in Visual Basic).

This method removes the application from the local machine. The Service Application Framework Sample requires two methods to both provision and un-provision the service application and its instance. These methods will be called from the UI when an administrator creates or stop a service application instance.

public override void Provision()        {            m_Database.Provision();            base.Provision();        }        public override void Unprovision(            bool deleteData)        {            base.Unprovision(deleteData);            m_Database.Unprovision();        }
© 2015 Microsoft