共用方式為


AllUsersWebPart Element (Site)

Applies to: SharePoint Foundation 2010

Contains a Web Part in a module of a site definition.

<AllUsersWebPart
  ID = "Text"    WebPartOrder = "Integer"
  WebPartZoneID = "Text">
</AllUsersWebPart>

Attributes

Attribute

Description

ID

Optional Text.

WebPartOrder

Optional Integer. Specifies the vertical positioning of the Web Part within a zone.

WebPartZoneID

Optional Text. Specifies the zone for the Web Part.

Child Elements

Element

Description

None

N/A

Parent Elements

File

Occurrences

Minimum: 0

Maximum: Unbounded

Remarks

See Module Element (Site) for an example that uses the AllUsersWebPart element.

See Also

Reference

Module Element (Site)