SiteMapNodeItem.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / SiteMapNodeItem.cs / 1305376 / SiteMapNodeItem.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Web.UI.WebControls { 
 
    using System;
    using System.ComponentModel; 
    using System.Web.UI;


    ///  
    /// Represents a 
    ///  
    [ 
    ToolboxItem(false)
    ] 
    public class SiteMapNodeItem : WebControl, INamingContainer, IDataItemContainer {

        private int _itemIndex;
        private SiteMapNodeItemType _itemType; 
        private SiteMapNode _siteMapNode;
 
 
        /// 
        /// Initializes a new instance of the  class. 
        /// 
        public SiteMapNodeItem(int itemIndex, SiteMapNodeItemType itemType) {
            this._itemIndex = itemIndex;
            this._itemType = itemType; 
        }
 
 
        /// 
        /// Represents a sitemapnode.  
        /// 
        public virtual SiteMapNode SiteMapNode {
            get {
                return _siteMapNode; 
            }
            set { 
                _siteMapNode = value; 
            }
        } 


        /// 
        /// Indicates the index of the item. This property is read-only. 
        /// 
        public virtual int ItemIndex { 
            get { 
                return _itemIndex;
            } 
        }


        ///  
        /// Indicates the type of the item in the .
        ///  
        public virtual SiteMapNodeItemType ItemType { 
            get {
                return _itemType; 
            }
        }

 
        /// 
        ///  
        ///  
        protected internal virtual void SetItemType(SiteMapNodeItemType itemType) {
            this._itemType = itemType; 
        }


        ///  
        object IDataItemContainer.DataItem {
            get { 
                return SiteMapNode; 
            }
        } 

        int IDataItemContainer.DataItemIndex {
            get {
                return ItemIndex; 
            }
        } 
 
        int IDataItemContainer.DisplayIndex {
            get { 
                return ItemIndex;
            }
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK