SiteMapNodeItem.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / SiteMapNodeItem.cs / 2 / SiteMapNodeItem.cs

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

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

 
    /// 
    /// Represents a  
    ///  
    [
    ToolboxItem(false) 
    ]
    [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
    [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
    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.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

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