WebPart element (Site)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

<WebPart
    AllUsers = "Text"
    Assembly = "Text"
    Cache = "Text"
    Class = "Text"
    DisplayName = "Text"
    Flags = "Text"
    FrameState = "Integer"
    IsIncluded = "TRUE" | "FALSE"
    List = "Text"
    PerUser = "Text"
    SolutionId = "Text"
    Src = "Text"
    Type = "Integer"
    Url = "Text"
    Version = "Text"
    WebPartIdProperty = "Text"
    WPTypeId = "Text">
</WebPart>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
AllUsers
Optional Text.
Assembly
Optional Text.
Cache
Optional Text.
Class
Optional Text.
DisplayName
Optional Text.
Flags
Optional Text.
FrameState
Optional Integer.
IsIncluded
Optional Boolean.
List
Optional Text.
PerUser
Optional Text.
SolutionId
Optional Text.
Src
Optional Text.
Type
Optional Integer.
Url
Optional Text.
Version
Optional Text.
WebPartIdProperty
Optional Text.
WPTypeId
Optional Text.

Child elements

None

Parent elements

Occurrences

  • Minimum: 1
  • Maximum: Unbounded