예제 #1
0
        /// <summary>
        ///
        /// </summary>
        public IISWebServer this[int Identify]
        {
            get
            {
                for (int i = 0; i < this.List.Count; i++)
                {
                    IISWebServer server = (IISWebServer)this.List[i];

                    if (server.Identify == Identify)
                    {
                        return(server);
                    }
                }

                return(null);
            }
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        public IISWebServer this[string ServerComment]
        {
            get
            {
                ServerComment = ServerComment.Trim();

                for (int i = 0; i < this.List.Count; i++)
                {
                    IISWebServer server = (IISWebServer)this.List[i];

                    if (String.Compare(server.ServerComment.Trim(), ServerComment, true) == 0)
                    {
                        return(server);
                    }
                }

                return(null);
            }
        }
예제 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="Parent"></param>
 public IISWebVirtualDirCollection(IISWebServer Parent)
 {
     this.Parent = Parent;
 }
예제 #4
0
 internal void Add(IISWebServer WebServer)
 {
     this.List.Add(WebServer);
 }