Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="iisvd"></param>
        public void Remove(IISWebVirtualDir iisvd)
        {
            for (int i = 0; i < this.List.Count; i++)
            {
                if ((IISWebVirtualDir)this.List[i] == iisvd)
                {
                    this.List.RemoveAt(i);

                    break;
                }
            }
        }
Beispiel #2
0
        /// <summary>
        ///
        /// </summary>
        public IISWebVirtualDir this[string Name]
        {
            get
            {
                Name = Name.Trim();

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

                    if (String.Compare(vd.Name.Trim(), Name, true) == 0)
                    {
                        return(vd);
                    }
                }

                return(null);
            }
        }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="iisvd"></param>
 public void Add(IISWebVirtualDir iisvd)
 {
     this.List.Add(iisvd);
 }