ConfigurationElement.SetReadOnly 方法

定義

設定 IsReadOnly() 物件和所有子項目的 ConfigurationElement 屬性。

protected:
 virtual void SetReadOnly();
protected public:
 virtual void SetReadOnly();
protected virtual void SetReadOnly ();
protected internal virtual void SetReadOnly ();
abstract member SetReadOnly : unit -> unit
override this.SetReadOnly : unit -> unit
Protected Overridable Sub SetReadOnly ()
Protected Friend Overridable Sub SetReadOnly ()

備註

這個方法會在內部使用,將無法修改的系統組態專案放在一起。

若要判斷哪些專案可以修改,請使用 IsReadOnly 方法。

適用於

另請參閱