iiswebsitemenuitem.cs

来自「用ADSI操作IIS文件」· CS 代码 · 共 40 行

CS
40
字号
// IIsAdmin.NET
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
// 
// This softwareis provided "AS IS" with no warranties of any kind.
// The entire risk arising out of the use or performance of the software
// and source code is with you.
//
// THIS NOTICE MAY NOT BE REMOVED FROM THIS FILE.

using System;
using System.Windows.Forms;

namespace IIsAdmin
{
    /// <summary>
    /// An IIsWebsite Menu Item
    /// </summary>
    public class IIsWebSiteMenuItem : MenuItem
    {
        private IIsWebSite _site;

        public IIsWebSiteMenuItem(IIsWebSite site, EventHandler onClick) : base(site.Name, onClick)
        {
            _site = site;
        }

        public IIsWebSite WebSite
        {
            get
            {
                return _site;
            }
        }
    }
}

⌨️ 快捷键说明

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