Share via


SPIisWebServiceApplication.Provision method

Provisions the web service application in the server farm.

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

Syntax

'Declaration
Public Overrides Sub Provision
'Usage
Dim instance As SPIisWebServiceApplication

instance.Provision()
public override void Provision()

Remarks

The Service Application Framework Sampleneeds 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. Refer to Provisioning Service Applications for more information.

public override void Provision()
        {
            m_Database.Provision();

            base.Provision();
        }

        public override void Unprovision(
            bool deleteData)
        {
            base.Unprovision(deleteData);

            m_Database.Unprovision();
        }
Public Overrides Sub Provision()
            m_Database.Provision()

            MyBase.Provision()
End Sub

        Public Overrides Sub Unprovision(ByVal deleteData As Boolean)
            MyBase.Unprovision(deleteData)

            m_Database.Unprovision()
        End Sub

See also

Reference

SPIisWebServiceApplication class

SPIisWebServiceApplication members

Microsoft.SharePoint.Administration namespace