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

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

public SetReadOnly ( ) : void
Результат void
       public void SetReadOnly()
       {
           if (_ReadOnly)
               return;
           _ReadOnly = true;
       }

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::SetReadOnly