編輯

共用方式為


ClientWebPartDefinition complexType

(AppHostWebFeatures)

Note

The string app appears as part of or all of some element, attribute, and file names because SharePoint Add-ins were originally called "apps for SharePoint." To ensure backward compatibility, the schemas have not been changed.

Type information

Value
Namespace http://schemas.microsoft.com/sharepoint/
Schema file apphostwebfeatures.xsd
Extension base None

Definition

    <xs:complexType name="ClientWebPartDefinition">
        <xs:all>
            <xs:element name="Content" type="ClientWebPartDefinitionContent" minOccurs="1" maxOccurs="1"></xs:element>
            <xs:element name="Properties" type="ClientWebPartProperties" minOccurs="0" maxOccurs="1"></xs:element>
        </xs:all>
        <xs:attribute name="Name" type="xs:string" use="required" />
        <xs:attribute name="DefaultWidth" type="xs:int" use="optional" />
        <xs:attribute name="DefaultHeight" type="xs:int" use="optional" />
        <xs:attribute name="Title" type="xs:string" use="optional" />
        <xs:attribute name="Description" type="xs:string" use="optional" />
    </xs:complexType>

Elements and attributes

If the schema defines specific requirements, such as sequence, minOccurs, maxOccurs, and choice, see the definition section.

Child elements

Element

Type

Description

Content

ClientWebPartDefinitionContent

Properties

ClientWebPartProperties


Attributes

Attribute

Type

Required

Description

Possible values

DefaultHeight

xs:int

optional

Values of the xs:int type.

DefaultWidth

xs:int

optional

Values of the xs:int type.

Description

xs:string

optional

Values of the xs:string type.

**Name**

xs:string

required

Values of the xs:string type.

Title

xs:string

optional

Values of the xs:string type.