ContainsKey(String,String) Method
Determines whether the collection contains an element with the specified key.
'Declaration
Public Overloads Function ContainsKey( _
ByVal As String, _
ByVal As String _
) As Boolean
Parameters
- categoryName
- The name of the performance counter category (performance object) with which this performance counter is associated.
- counterName
- The name of the performance counter.
Return Value
true if the collection contains an element with the key; otherwise, false.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2