ListView.ListViewItemCollection.RemoveByKey(String) ListView.ListViewItemCollection.RemoveByKey(String) ListView.ListViewItemCollection.RemoveByKey(String) ListView.ListViewItemCollection.RemoveByKey(String) Method

定义

从集合中移除具有指定键的项。Removes the item with the specified key from the collection.

public:
 virtual void RemoveByKey(System::String ^ key);
public virtual void RemoveByKey (string key);
abstract member RemoveByKey : string -> unit
override this.RemoveByKey : string -> unit
Public Overridable Sub RemoveByKey (key As String)

参数

key
String String String String

要从集合中移除的项的名称。The name of the item to remove from the collection.

注解

密钥比较不区分大小写。The key comparison is not case-sensitive. 属性对应于中ListViewItem ListView.ListViewItemCollection的的键。 NameThe Name property corresponds to the key for a ListViewItem in the ListView.ListViewItemCollection.

适用于