1<?xml version="1.0" encoding="utf-8"?> 2<Type Name="SiteMapHierarchicalDataSourceView" FullName="System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView"> 3 <TypeSignature Language="C#" Value="public class SiteMapHierarchicalDataSourceView : System.Web.UI.HierarchicalDataSourceView" /> 4 <AssemblyInfo> 5 <AssemblyName>System.Web</AssemblyName> 6 <AssemblyVersion>2.0.0.0</AssemblyVersion> 7 </AssemblyInfo> 8 <Base> 9 <BaseTypeName>System.Web.UI.HierarchicalDataSourceView</BaseTypeName> 10 </Base> 11 <Interfaces /> 12 <Docs> 13 <since version=".NET 2.0" /> 14 <remarks> 15 <attribution license="cc4" from="Microsoft" modified="false" /> 16 <para>The <see cref="T:System.Web.UI.WebControls.SiteMapDataSource" /> control can present its underlying data in both tabular and hierarchical format to Web server controls that bind to it. The <see cref="T:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView" /> is used by controls developers, but not page developers or in page code.</para> 17 <para>Controls such as <see cref="T:System.Web.UI.WebControls.Menu" /> or <see cref="T:System.Web.UI.WebControls.DropDownList" /> use the <see cref="T:System.Web.UI.WebControls.SiteMapDataSource" /> to bind to site map data and present it in list form, while controls that derive from the <see cref="T:System.Web.UI.WebControls.HierarchicalDataBoundControl" /> class, such as <see cref="T:System.Web.UI.WebControls.TreeView" />, bind to sitemap data and present it in hierarchical form. </para> 18 <para>If a data-bound control calls the <see cref="M:System.Web.UI.IDataSource.GetView(System.String)" /> method of the <see cref="T:System.Web.UI.WebControls.SiteMapDataSource" />, a <see cref="T:System.Web.UI.WebControls.SiteMapDataSourceView" /> is created by the data source. If a control calls the <see cref="T:System.Web.UI.WebControls.HierarchicalDataBoundControl" /> <see cref="M:System.Web.UI.HierarchicalDataSourceControl.GetHierarchicalView(System.String)" /> method, a <see cref="T:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView" /> is created. The <see cref="T:System.Web.UI.WebControls.SiteMapDataSourceView" /> class is provided for Web server controls that derive from <see cref="T:System.Web.UI.WebControls.DataBoundControl" /> and bind to lists and tabular data, while the <see cref="T:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView" /> is provided for Web server controls that derive from <see cref="T:System.Web.UI.WebControls.HierarchicalDataBoundControl" /> and bind to hierarchical data. </para> 19 <para>Like all <see cref="T:System.Web.UI.HierarchicalDataSourceView" /> helper objects, the <see cref="T:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView" /> defines the operations that the data source can perform with the underlying data. Because the <see cref="T:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView" /> class only overrides the <see cref="M:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView.Select" /> method, the associated <see cref="T:System.Web.UI.WebControls.SiteMapDataSource" /> control does not support sort expressions or insert, delete, or update operations. </para> 20 </remarks> 21 <summary> 22 <attribution license="cc4" from="Microsoft" modified="false" /> 23 <para>Represents a data view on a site map node or collection of nodes for a <see cref="T:System.Web.UI.WebControls.SiteMapDataSource" /> control.</para> 24 </summary> 25 </Docs> 26 <Members> 27 <Member MemberName=".ctor"> 28 <MemberSignature Language="C#" Value="public SiteMapHierarchicalDataSourceView (System.Web.SiteMapNode node);" /> 29 <MemberType>Constructor</MemberType> 30 <Parameters> 31 <Parameter Name="node" Type="System.Web.SiteMapNode" /> 32 </Parameters> 33 <Docs> 34 <since version=".NET 2.0" /> 35 <remarks> 36 <attribution license="cc4" from="Microsoft" modified="false" /> 37 <para>The <see cref="T:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView" /> class maintains an internal <see cref="T:System.Web.SiteMapNodeCollection" /> collection of nodes. When the <see cref="M:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView.#ctor(System.Web.SiteMapNode)" /> constructor is used, the specified node is added to the collection. A call to the <see cref="M:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView.Select" /> method will return this collection of one element. </para> 38 </remarks> 39 <summary> 40 <attribution license="cc4" from="Microsoft" modified="false" /> 41 <para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView" /> class, adding the specified node to the <see cref="T:System.Web.UI.IHierarchicalEnumerable" /> collection that the data source view maintains.</para> 42 </summary> 43 <param name="node"> 44 <attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Web.SiteMapNode" /> that the data source view represents.</param> 45 </Docs> 46 <AssemblyInfo> 47 <AssemblyVersion>2.0.0.0</AssemblyVersion> 48 </AssemblyInfo> 49 </Member> 50 <Member MemberName=".ctor"> 51 <MemberSignature Language="C#" Value="public SiteMapHierarchicalDataSourceView (System.Web.SiteMapNodeCollection collection);" /> 52 <MemberType>Constructor</MemberType> 53 <Parameters> 54 <Parameter Name="collection" Type="System.Web.SiteMapNodeCollection" /> 55 </Parameters> 56 <Docs> 57 <since version=".NET 2.0" /> 58 <remarks> 59 <attribution license="cc4" from="Microsoft" modified="false" /> 60 <para>The <see cref="T:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView" /> class maintains an internal <see cref="T:System.Web.SiteMapNodeCollection" /> collection of nodes. When the <see cref="M:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView.#ctor(System.Web.SiteMapNodeCollection)" /> constructor is used, the specified collection becomes the one the data source view maintains. </para> 61 </remarks> 62 <summary> 63 <attribution license="cc4" from="Microsoft" modified="false" /> 64 <para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView" /> class, setting the specified collection to the <see cref="T:System.Web.UI.IHierarchicalEnumerable" /> collection that the data source view maintains.</para> 65 </summary> 66 <param name="collection"> 67 <attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Web.SiteMapNodeCollection" /> that the data source view represents.</param> 68 </Docs> 69 <AssemblyInfo> 70 <AssemblyVersion>2.0.0.0</AssemblyVersion> 71 </AssemblyInfo> 72 </Member> 73 <Member MemberName="Select"> 74 <MemberSignature Language="C#" Value="public override System.Web.UI.IHierarchicalEnumerable Select ();" /> 75 <MemberType>Method</MemberType> 76 <ReturnValue> 77 <ReturnType>System.Web.UI.IHierarchicalEnumerable</ReturnType> 78 </ReturnValue> 79 <Parameters /> 80 <Docs> 81 <since version=".NET 2.0" /> 82 <remarks> 83 <attribution license="cc4" from="Microsoft" modified="false" /> 84 <para>The <see cref="M:System.Web.UI.WebControls.SiteMapHierarchicalDataSourceView.Select" /> method returns an <see cref="T:System.Web.UI.IHierarchicalEnumerable" /> collection of nodes. You can call the <see cref="M:System.String.System#Collections#IEnumerable#GetEnumerator" /> method to get an <see cref="T:System.Collections.IEnumerator" /> object and iterate through this collection.</para> 85 </remarks> 86 <summary> 87 <attribution license="cc4" from="Microsoft" modified="false" /> 88 <para>Gets the collection of the <see cref="T:System.Web.SiteMapNode" /> objects that represents the site navigation structure for the current user.</para> 89 </summary> 90 <returns> 91 <attribution license="cc4" from="Microsoft" modified="false" /> 92 <para>An <see cref="T:System.Web.UI.IHierarchicalEnumerable" /> collection of site map nodes.</para> 93 </returns> 94 </Docs> 95 <AssemblyInfo> 96 <AssemblyVersion>2.0.0.0</AssemblyVersion> 97 </AssemblyInfo> 98 </Member> 99 </Members> 100</Type>