ProfileInfoCollection.SetReadOnly 方法

定义

ProfileInfoCollection 的内容设置为只读。

public:
 void SetReadOnly();
public void SetReadOnly ();
member this.SetReadOnly : unit -> unit
Public Sub SetReadOnly ()

注解

该方法 SetReadOnlyProfileInfoCollection 该方法标记为只读,以便 ProfileInfo 无法向集合中添加或删除对象。 调用 SetReadOnly 该方法后,无法将回退更改为 ProfileInfoCollection 读/写。

适用于

另请参阅