Share via


ResourceDictionary.Remove(String) 方法

定義

ResourceDictionary 移除由 key 所識別的索引鍵和值。

public bool Remove (string key);
abstract member Remove : string -> bool
override this.Remove : string -> bool

參數

key
System.String

要移除的索引鍵/值組識別碼。

傳回

System.Boolean

若果索引鍵存在且成功移除,即為 true

實作

System.Collections.Generic.IDictionary`2.Remove(`0)

適用於