WebPart 要素 (DeploymentManifest)

適用対象: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013

SharePoint Foundation トップレベル Web パーツ オブジェクト (SPWebPart) のインスタンスを表します。

定義

DECLARATION
<xs:element name="WebPart"
        type="SPWebPart"
        minOccurs="1" maxOccurs="unbounded"
/>
USAGE
<SPWebPart>
      <xs:sequence>
            <xs:choice minOccurs="0" maxOccurs="25">
                  <xs:element name="Script" />
                  <xs:element name="PagedRowset" />
                  <xs:element name="PagedClientCallbackRowset"
                  <xs:element name="PagedRecurrenceRowset" />
                  <xs:element name="ViewFields" type="SPFieldLinkCollection" />
                  <xs:element name="ViewData" />
                  <xs:element name="Query" />
                  <xs:element name="RowLimit" />
                  <xs:element name="RowLimitExceeded" />
                  <xs:element name="Toolbar" />
                  <xs:element name="Formats" />
                  <xs:element name="Aggregations" />
                  <xs:element name="ViewStyle"
                  <xs:element name="ViewBody" />
                  <xs:element name="ViewEmpty" />
                  <xs:element name="ViewFooter" />
                  <xs:element name="ViewHeader" />
                  <xs:element name="ViewBidiHeader"/>
                  <xs:element name="GroupByFooter"
                  <xs:element name="GroupByHeader" />
                  <xs:element name="CalendarViewStyles" />
                  <xs:element name="ListFormBody" />
            </xs:choice>
      </xs:sequence>
      <xs:attribute name="Name" />
      <xs:attribute name="ListId />
      <xs:attribute name="ListRootFolderUrl" />
      <xs:attribute name="Type" />
      <xs:attribute name="UserId" />
      <xs:attribute name="DisplayName" />
      <xs:attribute name="WebPartTypeId" />
      <xs:attribute name="Version" />
      <xs:attribute name="BaseViewID" />
      <xs:attribute name="WebPartZoneID" />
      <xs:attribute name="IsIncluded" />
      <xs:attribute name="WebPartOrder" />
      <xs:attribute name="FrameState" />
      <xs:attribute name="Source" />
      <xs:attribute name="AllUsersProperties" />
      <xs:attribute name="PerUserProperties" />
      <xs:attribute name="ContentTypeId" />
            <!-- For files (major [default] or minor) -->
      <xs:attribute name="Level" />
            <!-- Flags -->
      <xs:attribute name="Flags" />
      <xs:attribute name="Scope" />
      <xs:attribute name="Hidden" />
      <xs:attribute name="Threaded" />
      <xs:attribute name="ReadOnly" />
      <xs:attribute name="RecurrenceRowset" />
      <xs:attribute name="FPModified" />
      <xs:attribute name="ModerationType" />
      <xs:attribute name="Personal" />
      <xs:attribute name="OrderedView" />
</WebPart>

WebPart

要素と属性

以下のセクションで、属性、子要素、親要素について説明します。

属性

属性 説明
AllUsersProperties
xs:string
この値は Web パーツによって生成されるため、変更しないでください。
BaseViewID
xs:string
オプション。
ContentTypeId
xs:string
識別子のコンテンツ タイプを指定します。
DisplayName
xs:string
Web パーツのタイトル バーに表示される Web パーツ名の表現。
Flags
xs:string
オプションのフラグ。
FPModified
xs:boolean
オプションのフラグ。
FrameState
xs:string
オプション。 Web パーツ フレームの初期状態を指定します。フレームは通常 (展開) または最小化できます。
Hidden
xs:boolean
オプションのフラグ。 Web パーツ コントロールを Web ページに表示するかどうかを指定します。コントロールが非表示の場合、値は true です。既定値は false です
IsIncluded
xs:string
オプション。
Level
xs:string
オプション。 指定したファイルがメジャー レベルまたはマイナー レベルのどちらであるかを示します。 既定値はメジャーです。
ListId
Guid 単純型 (DeploymentManifest)
オプション。 Web パーツ 一覧の一意識別子。
ListRootFolderUrl
xs:string
オプション。 リストの格納場所のルート フォルダーの URL。
ModerationType
xs:string
オプションのフラグ。
名前
Guid 単純型 (DeploymentManifest)
必須です。 Web パーツの一意識別子。
OrderedView
xs:boolean
オプションのフラグ。
個人用
xs:boolean
オプションのフラグ。
PerUserProperties
xs:string
この値はユーザーごとに Web パーツによって生成されるため、変更しないでください。
ReadOnly
xs:boolean
オプションのフラグ。 Web パーツの内容を読み取り専用にするかどうかを指定します。読み取り専用の場合 は true 、それ以外の場合 は false
RecurrenceRowset
xs:boolean
オプションのフラグ。
スコープ
xs:string
オプションのフラグ。
Source
xs:string
オプション。
スレッド
xs:boolean
オプションのフラグ。
Type
xs:string
オプション。 Web パーツの種類を指定します。
UserId
Guid 単純型 (DeploymentManifest)
オプション。
バージョン
xs:string
オプション。 Web パーツのバージョンを指定します。
WebPartOrder
xs:string
オプション。 Web パーツ内のコンテンツの順序を指定します。
WebPartTypeId
xs:string
オプション。 Web パーツの種類の識別子を指定します。
WebPartZoneID
xs:string
オプション。 Web パーツ ゾーンの識別子を指定します。

子要素

親要素

注釈

Web パーツは、ASP.NET Web パーツ (WebPart)、または SharePoint Foundation Web パーツ (WebPart) の 2 つの基本クラスから派生できます。

関連項目