System.Configuration.NameValueConfigurationCollection.this C# (CSharp) 메소드

this() 공개 메소드

public this ( string name ) : NameValueConfigurationElement
name string
리턴 NameValueConfigurationElement
        public new NameValueConfigurationElement this[string name]
        {
            get
            {
                return (NameValueConfigurationElement) BaseGet(name);
            }
            set
            {
                int index = -1; // append by default
                NameValueConfigurationElement tempElement = (NameValueConfigurationElement) BaseGet(name);
                if (tempElement != null)
                {
                    index = BaseIndexOf(tempElement);
                    BaseRemoveAt(index);
                }
                BaseAdd(index, value);
            }
        }