ServiceNameCollection.Contains(String) 方法
定义
返回一个值,该值指示指定字符串是否出现在此 ServiceNameCollection 实例中。Returns a value indicating whether the specified string occurs within this ServiceNameCollection instance.
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
要搜寻的字符串。The string to seek.
返回
如果参数 searchServiceName 出现在此 ServiceNameCollection 实例中,则为 true; 否则为 false。true if the searchServiceName parameter occurs within this ServiceNameCollection instance; otherwise, false.