TeamFoundationPerformanceCounters.Item Property (String)

The indexer will return the counter for the given counter name if it has been registered; otherwise, it will return null.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    counterName As String _
) As TeamFoundationPerformanceCounter
public TeamFoundationPerformanceCounter this[
    string counterName
] { get; }
public:
property TeamFoundationPerformanceCounter^ default[String^ counterName] {
    TeamFoundationPerformanceCounter^ get (String^ counterName);
}
member Item : 
        counterName:string -> TeamFoundationPerformanceCounter with get
JScript does not support indexed properties.

Parameters

  • counterName
    Type: System.String

    Name of the performance counter required.

Property Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationPerformanceCounter
The performance counter for this counter name, or null if it hasn't been registered.

.NET Framework Security

See Also

Reference

TeamFoundationPerformanceCounters Class

Item Overload

Microsoft.TeamFoundation.Framework.Server Namespace