ConfigurationElement.SetReadOnly ConfigurationElement.SetReadOnly ConfigurationElement.SetReadOnly ConfigurationElement.SetReadOnly Method

定义

设置 ConfigurationElement 对象及所有子元素的 IsReadOnly() 属性。Sets the IsReadOnly() property for the ConfigurationElement object and all subelements.

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

注解

此方法在内部使用,用于搁置那些不能修改的系统配置元素。This method is used internally to set aside those system-configuration elements that cannot be modified.

若要确定可以修改哪些元素,请使用IsReadOnly方法。To determine which elements can be modified, use the IsReadOnly method.

适用于

另请参阅