Script element (DeploymentManifest - SPWebPart)
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Represents script to execute on deployment of an instance of a web part (WebPart) object.
Definition
DECLARATION
<xs:element name="Script" minOccurs="0" maxOccurs="1" />
USAGE
<WebPart>
<Script />
</WebPart>
Type
xs:string
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
Attributes
None
Child elements
None
Parent elements
Remarks
Web parts can derive from either of two base classes - an ASP.NET web part (WebPart), or a SharePoint Foundation web part (WebPart).