ConfigurationPropertyCollection.Contains(String) 方法

定義

指定組態屬性是否包含在這個集合中。

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 的識別項。

傳回

如果指定的 ConfigurationProperty 包含在集合中,則為 true,否則為 false

範例

下列範例會示範如何使用 Contains 方法。

適用於

另請參閱