ServiceNameCollection.Contains(String) 方法

定义

返回一个值,该值指示指定字符串是否出现在此 ServiceNameCollection 实例中。

public:
 bool Contains(System::String ^ searchServiceName);
public bool Contains (string? searchServiceName);
public bool Contains (string searchServiceName);
member this.Contains : string -> bool
Public Function Contains (searchServiceName As String) As Boolean

参数

searchServiceName
String

要搜寻的字符串。

返回

Boolean

返回 Boolean

如果参数 searchServiceName 出现在此 ServiceNameCollection 实例中,则为 true; 否则为 false

适用于