Click to Rate and Give Feedback

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
SPWebProvisioningProvider.Provision Method (Microsoft.SharePoint)
Occurs after a Web site is created.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Visual Basic (Declaration)
Public MustOverride Sub Provision ( _
    props As SPWebProvisioningProperties _
)
Visual Basic (Usage)
Dim instance As SPWebProvisioningProvider
Dim props As SPWebProvisioningProperties

instance.Provision(props)
C#
public abstract void Provision (
    SPWebProvisioningProperties props
)

Parameters

props

An SPWebProvisioningProperties object that represents properties of the site creation event.

CautionCaution:

Be careful about calling the ApplyWebTemplate method within a Web site provisioning callback. Calling this method inside a provisioning callback that is defined within the same site definition configuration that is being applied can cause an infinite loop. Instead, create two similar site definition configurations within the site definition, one that is visible and one that is hidden. The configuration can then contain a provisioning assembly callback that applies the hidden configuration to Web sites.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker