System.Configuration.SettingsPropertyCollection.Clear C# (CSharp) Метод

Clear() публичный Метод

public Clear ( ) : void
Результат void
       public void Clear() {
           if (_ReadOnly)
               throw new NotSupportedException();
           OnClear();
           _Hashtable.Clear();
           OnClearComplete();
       }

Usage Example

		public void ReadOnly_Clear ()
		{
			SettingsPropertyCollection col = new SettingsPropertyCollection ();

			SettingsProperty test_prop = new SettingsProperty ("test_prop");
			col.Add (test_prop);

			col.SetReadOnly ();

			col.Clear ();
		}
All Usage Examples Of System.Configuration.SettingsPropertyCollection::Clear