SPWebTemplate.ProvisionData Property

Specifies custom data to pass to the site provisioning handler for creating sites.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public string ProvisionData { get; }

Property Value

Type: System.String
A String that contains the custom data.

If the SPWebTemplate represents a site definition configuration, this property is the value of the ProvisionData attribute of a Configuration element in a WebTemp*.xml. (See Understanding WebTemp*.xml Files for more information.)

The data returned by this property is used by the Provision() method of the class identified in ProvisionClass.

This property can be used to hold a path to a file with structured data.

The following is an example of the value of this property.