2.1.2.62 SPWebPart

Specifies a Web Part object instance appearing in one of the Web Part Page documents in this deployment package.

 <xs:complexType name="SPWebPart">
     <xs:group ref="core:ViewDefinitionChildElementGroup"/>
     <xs:attributeGroup ref="SPViewBaseAttributeGroup"/>
  
     <xs:attribute name="Name" type="core:UniqueIdentifierWithoutBraces"
                   use="required" />
     <xs:attribute name="UserId" type="xs:int" use="optional" />
     <xs:attribute name="ListId" type="core:UniqueIdentifierWithoutBraces"
                   use="optional" />
     <xs:attribute name="ListRootFolderUrl" type="core:RelativeUrl"
                   use="optional" />
     <xs:attribute name="Version" type="xs:int" use="optional" />
     <xs:attribute name="AllUsersProperties" type="xs:base64Binary"
                   use="optional" />
     <xs:attribute name="PerUserProperties" type="xs:base64Binary"
                   use="optional" />
     <xs:attribute name="Source" type="xs:string" use="optional" />
     <xs:attribute name="ContentTypeId" type="core:ContentTypeId"
                   use="optional" />
     <xs:attribute name="Assembly" type="xs:string" use="optional" />
     <xs:attribute name="Class" type="xs:string" use="optional" />
     <xs:attribute name="SolutionId" type="core:UniqueIdentifierWithoutBraces"
                   use="optional" />
     <xs:attribute name="Type" use="optional">
         <xs:simpleType>
             <xs:restriction base="xs:int">
                 <xs:minInclusive value="-1" />
                 <xs:maxInclusive value="10" />
             </xs:restriction>
         </xs:simpleType>
     </xs:attribute>
     <xs:attribute name="Level" use="required">
         <xs:simpleType>
             <xs:restriction base="xs:string">
                 <xs:enumeration value="major" />
                 <xs:enumeration value="minor" />
             </xs:restriction>
         </xs:simpleType>
     </xs:attribute>
 </xs:complexType>