Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
135 lines (124 sloc) 7.92 KB
<Type Name="SiteMapNodeItemType" FullName="System.Web.UI.WebControls.SiteMapNodeItemType">
<TypeSignature Language="C#" Value="public enum SiteMapNodeItemType" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed SiteMapNodeItemType extends System.Enum" />
<TypeSignature Language="DocId" Value="T:System.Web.UI.WebControls.SiteMapNodeItemType" />
<TypeSignature Language="VB.NET" Value="Public Enum SiteMapNodeItemType" />
<TypeSignature Language="C++ CLI" Value="public enum class SiteMapNodeItemType" />
<TypeSignature Language="F#" Value="type SiteMapNodeItemType = " />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Docs>
<summary>The <see cref="T:System.Web.UI.WebControls.SiteMapNodeItemType" /> enumeration is used by the <see cref="T:System.Web.UI.WebControls.SiteMapPath" /> control to identify the type of a <see cref="T:System.Web.UI.WebControls.SiteMapNodeItem" /> node within a node hierarchy.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.WebControls.SiteMapPath> control manages its site navigation information as a collection of <xref:System.Web.UI.WebControls.SiteMapNodeItem> objects. <xref:System.Web.UI.WebControls.SiteMapNodeItem> objects represent functionally different types of <xref:System.Web.SiteMapNode> nodes. Accordingly, they are managed by the <xref:System.Web.UI.WebControls.SiteMapPath> control. The following list describes the types of nodes available:
- One node that represent the currently viewed page.
- One node that is the top node of the site navigation hierarchy.
- Zero or more nodes between the top node and the current node (parent nodes).
- Zero or more nodes that represent site navigation path separators.
Each node is data-bound to an underlying <xref:System.Web.SiteMapNode>, except nodes of the PathSeparator type.
## Examples
The following code example demonstrates how to call the <xref:System.Web.UI.WebControls.SiteMapPath.OnItemCreated%2A> method after creating a <xref:System.Web.UI.WebControls.SiteMapNodeItem> within the <xref:System.Web.UI.WebControls.SiteMapPath.InitializeItem%2A> method. This code example is part of a larger code example provided for the <xref:System.Web.UI.WebControls.SiteMapPath.InitializeItem%2A> class.
[!code-csharp[Urtue.Samples.Alexkr.DropDownNavigationPath_1#3](~/samples/snippets/csharp/VS_Snippets_WebNet/Urtue.Samples.Alexkr.DropDownNavigationPath_1/CS/dropdownnavigationpath.cs#3)]
[!code-vb[Urtue.Samples.Alexkr.DropDownNavigationPath_1#3](~/samples/snippets/visualbasic/VS_Snippets_WebNet/Urtue.Samples.Alexkr.DropDownNavigationPath_1/VB/dropdownnavigationpath.vb#3)]
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.SiteMapNodeItem" />
<altmember cref="T:System.Web.UI.WebControls.SiteMapPath" />
<related type="Article" href="https://msdn.microsoft.com/library/de8fa2ed-b3c1-4855-bb61-f6287060c4b9">SiteMapPath Web Server Control</related>
<related type="Article" href="https://msdn.microsoft.com/library/1686b4cd-435a-42dc-b22d-713d7763f97d">Securing ASP.NET Site Navigation</related>
</Docs>
<Members>
<Member MemberName="Current">
<MemberSignature Language="C#" Value="Current" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.UI.WebControls.SiteMapNodeItemType Current = int32(2)" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.SiteMapNodeItemType.Current" />
<MemberSignature Language="VB.NET" Value="Current" />
<MemberSignature Language="C++ CLI" Value="Current" />
<MemberSignature Language="F#" Value="Current = 2" Usage="System.Web.UI.WebControls.SiteMapNodeItemType.Current" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.SiteMapNodeItemType</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>The currently viewed page in the site navigation path.</summary>
</Docs>
</Member>
<Member MemberName="Parent">
<MemberSignature Language="C#" Value="Parent" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.UI.WebControls.SiteMapNodeItemType Parent = int32(1)" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.SiteMapNodeItemType.Parent" />
<MemberSignature Language="VB.NET" Value="Parent" />
<MemberSignature Language="C++ CLI" Value="Parent" />
<MemberSignature Language="F#" Value="Parent = 1" Usage="System.Web.UI.WebControls.SiteMapNodeItemType.Parent" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.SiteMapNodeItemType</ReturnType>
</ReturnValue>
<MemberValue>1</MemberValue>
<Docs>
<summary>A parent node of the currently viewed page in the site navigation path. A parent node is any node that is found between the root node and the current node in the navigation hierarchy.</summary>
</Docs>
</Member>
<Member MemberName="PathSeparator">
<MemberSignature Language="C#" Value="PathSeparator" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.UI.WebControls.SiteMapNodeItemType PathSeparator = int32(3)" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.SiteMapNodeItemType.PathSeparator" />
<MemberSignature Language="VB.NET" Value="PathSeparator" />
<MemberSignature Language="C++ CLI" Value="PathSeparator" />
<MemberSignature Language="F#" Value="PathSeparator = 3" Usage="System.Web.UI.WebControls.SiteMapNodeItemType.PathSeparator" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.SiteMapNodeItemType</ReturnType>
</ReturnValue>
<MemberValue>3</MemberValue>
<Docs>
<summary>A site map navigation path separator. The default separator for the <see cref="T:System.Web.UI.WebControls.SiteMapPath" /> control is the "&gt;" character.</summary>
</Docs>
</Member>
<Member MemberName="Root">
<MemberSignature Language="C#" Value="Root" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Web.UI.WebControls.SiteMapNodeItemType Root = int32(0)" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.SiteMapNodeItemType.Root" />
<MemberSignature Language="VB.NET" Value="Root" />
<MemberSignature Language="C++ CLI" Value="Root" />
<MemberSignature Language="F#" Value="Root = 0" Usage="System.Web.UI.WebControls.SiteMapNodeItemType.Root" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.SiteMapNodeItemType</ReturnType>
</ReturnValue>
<MemberValue>0</MemberValue>
<Docs>
<summary>The top node of the site navigation hierarchy. There can be only one root node.</summary>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.