NameValueCollection.Clear 方法

定義

使快取陣列失效,並移除 NameValueCollection 中的所有項目。Invalidates the cached arrays and removes all entries from the NameValueCollection.

public:
 virtual void Clear();
public:
 void Clear();
public virtual void Clear ();
public void Clear ();
abstract member Clear : unit -> unit
override this.Clear : unit -> unit
member this.Clear : unit -> unit
Public Overridable Sub Clear ()
Public Sub Clear ()

例外狀況

集合是唯讀的。The collection is read-only.

備註

此方法是 O (1) 作業。This method is an O(1) operation.

適用於

另請參閱