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

定义

确定某字符串是否位于 StringValues 中。Determines whether a string is in the StringValues.

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

参数

item
String

要在 StringValues 中定位的字符串。The string to locate in the StringValues.

返回

Boolean

如果在 true 中找到 item,则为 StringValues;否则为 falsetrue if item is found in the StringValues; otherwise, false.

实现

适用于