ServiceCollection.Contains(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
檢查指定的索引鍵值是否存在集合中。
public:
bool Contains(System::String ^ key);
public bool Contains (string key);
member this.Contains : string -> bool
Public Function Contains (key As String) As Boolean
參數
傳回
Boolean 值,指定索引鍵值是否存在集合內。
如果為 True,則索引鍵值存在集合內。
如果為 False,則索引鍵值不存在集合內。