Export (0) Print
Expand All

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
)

Parameters

serviceInstance
Type: Microsoft.SharePoint.Administration.SPServiceInstance

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

ExceptionCondition
ArgumentNullException

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();        }

Community Additions

ADD
Show:
© 2014 Microsoft