StringValues.ICollection<String>.Remove(String) 方法

定义

从集合中移除特定对象的第一个匹配项。

 virtual bool System.Collections.Generic.ICollection<System.String>.Remove(System::String ^ item) = System::Collections::Generic::ICollection<System::String ^>::Remove;
bool ICollection<string>.Remove (string item);
bool ICollection<string>.Remove (string? item);
abstract member System.Collections.Generic.ICollection<System.String>.Remove : string -> bool
override this.System.Collections.Generic.ICollection<System.String>.Remove : string -> bool
Function Remove (item As String) As Boolean Implements ICollection(Of String).Remove

参数

item
String

要从集合中移除的对象。

返回

如果从集合中成功移除了 true,则为 item;否则为 false。 如果未在原始集合中找到 item,此方法也会返回 false

实现

适用于