NavBars 要素 (サイト)NavBars element (Site)

に適用されます: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint オンライン |SharePoint Server 2013Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

ホーム ページの上部と左側のナビゲーション領域に表示される一連のリンクが含まれます。Contains the collection of links that appear in the top and left navigation areas of a home page.

<NavBars>
</NavBars>

要素と属性Elements and attributes

以下のセクションで、属性、子要素、親要素について説明します。The following sections describe attributes, child elements, and parent elements.

属性Attributes

なしNone

子要素Child elements

親要素Parent elements

出現回数Occurrences

  • 最小 : 0Minimum: 0
  • 最大 : 1Maximum: 1

Example

次の例は、ファイル Onet.xml の一部です。ここでは、ホーム ページの既定のナビゲーション領域が定義されています。The following example from the file Onet.xml defines the default navigation areas for the home page.

<NavBars>
   <NavBar Name="SharePoint Top Navbar" Separator="&amp;nbsp;&amp;nbsp;&amp;nbsp;" 
      Body="<a ID='onettopnavbar#LABEL_ID#' href='#URL#' 
         accesskey='J'>#LABEL#</a>" ID="1002">
      <NavBarLink Name="Documents and Lists" 
         Url="_layouts/[%=System.Threading.Thread.CurrentThread.
            CurrentUICulture.LCID%]/viewlsts.aspx" />
      <NavBarLink Name="Create" 
         Url="_layouts/[%=System.Threading.Thread.CurrentThread.
            CurrentUICulture.LCID%]/create.aspx" />
      <NavBarLink Name="Site Settings" 
         Url="_layouts/[%=System.Threading.Thread.CurrentThread.
            CurrentUICulture.LCID%]/settings.aspx" />
      <NavBarLink Name="Help" Url="javascript:HelpWindowKey
         ("helphome")" />
   </NavBar>
   <NavBar Name="Documents" Prefix="<table border=0 cellpadding=4 
         cellspacing=0>" 
      Body="<tr><td><table border=0 cellpadding=0 
         cellspacing=0><tr><td>
      <img src='/_layouts/images/blank.gif' ID='100' alt='Icon' 
         border=0>&amp;nbsp;</td><td valign=top>
      <a ID=onetleftnavbar#LABEL_ID# 
         href='#URL#'>#LABEL#</td></tr></table></td></tr>" 
      Suffix="</table>" ID="1004" />
   <NavBar Name="Pictures" Prefix="<table border=0 cellpadding=4 
         cellspacing=0>" 
      Body="<tr><td><table border=0 cellpadding=0 
         cellspacing=0><tr><td>
      <img src='/_layouts/images/blank.gif' ID='100' alt='Icon' 
         border=0>&amp;nbsp;</td>
      <td valign=top><a ID=onetleftnavbar#LABEL_ID# 
         href='#URL#'>#LABEL#</td></tr></table>
      </td></tr>" Suffix="</table>" ID="1005" />
   <NavBar Name="Lists" Prefix="<table border=0 cellpadding=4 
         cellspacing=0>" 
      Body="<tr><td><table border=0 cellpadding=0 
         cellspacing=0><tr><td>
      <img src='/_layouts/images/blank.gif' ID='100' alt='Icon' 
         border=0>&amp;nbsp;</td>
      <td valign=top><a ID=onetleftnavbar#LABEL_ID# 
         href='#URL#'>#LABEL#</td></tr></table>
      </td></tr>" Suffix="</table>" ID="1003" />
   <NavBar Name="Discussions" Prefix="<table border=0 cellpadding=4 
         cellspacing=0>" 
      Body="<tr><td><table border=0 cellpadding=0 
         cellspacing=0><tr><td>
      <img src='/_layouts/images/blank.gif' ID='100' alt='Icon' 
         border=0>&amp;nbsp;</td>
      <td valign=top><a ID=onetleftnavbar#LABEL_ID# 
         href='#URL#'>#LABEL#</td></tr></table>
      </td></tr>" Suffix="</table>" ID="1006" />
   <NavBar Name="Surveys" Prefix="<table border=0 cellpadding=4 
         cellspacing=0>" 
      Body="<tr><td><table border=0 cellpadding=0 
         cellspacing=0><tr><td>
      <img src='/_layouts/images/blank.gif' ID='100' alt='Icon' 
         border=0>&amp;nbsp;</td>
      <td valign=top><a ID=onetleftnavbar#LABEL_ID# 
         href='#URL#'>#LABEL#</td></tr></table>
      </td></tr>" Suffix="</table>" ID="1007" />
</NavBars>