ConfigurationPropertyCollection.Contains(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定配置屬性是否包含在這個集合中。
public:
bool Contains(System::String ^ name);
public bool Contains(string name);
member this.Contains : string -> bool
Public Function Contains (name As String) As Boolean
參數
- name
- String
一個用 ConfigurationProperty 來驗證的識別碼。
傳回
true 若指定 ConfigurationProperty 包含於集合中;否則, false。
範例
以下範例說明如何使用此 Contains 方法。