⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sectionmenulink.cs

📁 ASP开发网站的 关于网站的设计和说明 还有SQL的程序 数据库
💻 CS
字号:
namespace ASPNET.StarterKit.Communities {

    using System;


    //*********************************************************************
    //
    // SectionMenuLink Class
    //
    // Represents a link in the SectionMenu. 
    //
    //*********************************************************************
    
    public class SectionMenuLink {
    
        string _sectionMenuTitle;
        string _sectionPath;
		int _sectionParentSectionID; // SMR - Enh - Added for multilevel section menu
		int _sectionID; // SMR - Enh - Added for multilevel section menu
		
        //*********************************************************************
        //
        // SectionMenuTitle Property
        //
        // The name of the section as displayed.
        //
        //*********************************************************************
        public string SectionMenuTitle {
            get { return _sectionMenuTitle; }
        }


        //*********************************************************************
        //
        // SectionPath Property
        //
        // The path to the section.
        //
        //*********************************************************************
               
        public string SectionPath {
            get { return _sectionPath; }
        }

		// SMR - Enh - Added for multilevel section menu
		public int SectionParentSectionID 
		{
			get {return _sectionParentSectionID; }
		}

		// SMR - Enh - Added for multilevel section menu
		public int SectionID
		{
			get {return _sectionID;}
		}

        //*********************************************************************
        //
        // SectionMenuLink Constructor
        //
        // Initializes SectionMenuLink with a section name
        // and path.
        //
        //*********************************************************************
        public SectionMenuLink(string sectionMenuTitle,string sectionPath) {
            _sectionMenuTitle = sectionMenuTitle;
            _sectionPath = sectionPath;
        }

		// SMR - Enh - overloaded constructor for multilevel section menu
		public SectionMenuLink(string sectionMenuTitle,string sectionPath,int sectionID,int sectionParentSectionID) 
		{
			_sectionMenuTitle = sectionMenuTitle;
			_sectionPath = sectionPath;
			_sectionID = sectionID;
			_sectionParentSectionID = sectionParentSectionID;
		}
        
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -