ProtocolPropertyCollection.Contains メソッド
指定したキーの値がコレクション内に存在するかどうかを確認します。
名前空間: Microsoft.SqlServer.Management.Smo.Wmi
アセンブリ: Microsoft.SqlServer.SqlWmiManagement (Microsoft.SqlServer.SqlWmiManagement.dll)
構文
'宣言
Public Function Contains ( _
name As String _
) As Boolean
'使用
Dim instance As ProtocolPropertyCollection
Dim name As String
Dim returnValue As Boolean
returnValue = instance.Contains(name)
public bool Contains(
string name
)
public:
bool Contains(
String^ name
)
member Contains :
name:string -> bool
public function Contains(
name : String
) : boolean
パラメーター
- name
型: System.String
コレクション内に存在するかどうかを確認するためのキーの値を示す String 値です。
戻り値
型: System.Boolean
コレクション内にキーの値が存在するかどうかを示す Boolean 値です。True の場合、キーの値はコレクション内に存在します。False の場合、キーの値はコレクション内に存在しません。