共用方式為


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

適用於