サイト スキーマ

最終更新日: 2010年4月15日

適用対象: SharePoint Foundation 2010

Collaborative Application Markup Language (CAML) のサイト スキーマを使用して、サイト コレクションのルート サイトなどの Web サイトの作成に使用されるメタデータを定義します。サイト定義では、サイトの作成に使用されるナビゲーション バー、リスト テンプレート、ドキュメント テンプレート、リスト ベース タイプ、構成、モジュール、コンポーネント、サーバー電子メール フッターを指定します。サイト定義は、%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\SiteTemplates に置かれる Onet.xml ファイルと、%ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\1033\XML に置かれる WebTemp*.xml ファイルで指定されます。

サイトは、オブジェクト モデル (たとえば、SPWeb クラスと SPWebCollection クラスのメンバー、または SPSite クラスと SPSiteCollection クラスのメンバー) を使用してプログラムで作成または変更できます。また、管理 Web サービス (Admin クラスのメソッド)、ドキュメント ワークスペース Web サービス (Dws のメソッド)、または会議 Web サービス (Meetings のメソッド) を使用して、リモートから作成または変更することもできます。

Site スキーマ要素

Onet.xml

<Project>

  <NavBars>

    <NavBar>

      <NavBarLink>

      <NavBarPage>

  <ListTemplates>

    <ListTemplate>

  <DocumentTemplates>

    <DocumentTemplate>

      <DocumentTemplateFiles>

        <DocumentTemplateFile>

  <BaseTypes>

    <BaseType>

      <MetaData>

  <Configurations>

    <Configuration>

      <ExecuteUrl>

      <Lists>

        <List>

          <Data>

            <Rows>

              <Row>

                <Field>

      <Modules>

       [「モジュール スキーマ」を参照] 

      <WebFeatures>

        <Feature>

          <Properties>

            <Property>

      <SiteFeatures>

        <Feature>

          <Properties>

            <Property>

  <Modules>

       [「モジュール スキーマ」を参照] 

  <Components>

    <ExternalSecurityProvider>

    <FileDialogPostProcessor>

  <ServerEmailFooter>

モジュール スキーマ

    <Module>

      <File>

        <AllUsersWebPart>

        <BinarySerializedWebPart>

           <GUIDMap>

             <GUID>

           <WebPart>

        <NavBarPage>

        <Property>

        <View>

          <BinarySerializedWebPart>

             <GUIDMap>

                <GUID>

             <WebPart>

         <WebPartConnection>

           <WebPartTransformer>

WebTemp*.xml

<Templates>

  <Template>

    <Configuration>