CounterSet Constructor (Guid, Guid, CounterSetInstanceType)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the CounterSet class.

Namespace:   System.Diagnostics.PerformanceData
Assembly:  System.Core (in System.Core.dll)

public CounterSet(
	Guid providerGuid,
	Guid counterSetGuid,
	CounterSetInstanceType instanceType
)

Parameters

providerGuid
Type: System.Guid

Guid that uniquely identifies the provider of the counter data. Use the Guid specified in the manifest.

counterSetGuid
Type: System.Guid

Guid that uniquely identifies the counter set for a provider. Use the Guid specified in the manifest.

instanceType
Type: System.Diagnostics.PerformanceData.CounterSetInstanceType

Identifies the type of the counter set, for example, whether the counter set is a single or multiple instance counter set.

Exception Condition
InsufficientMemoryException

Not enough memory is available to complete the operation.

PlatformNotSupportedException

Not supported prior to Windows Vista.

ArgumentException

One of the parameters is NULL or not valid.

Win32Exception

An underlying Win32 function call failed.

Registers your provider. Calling the Dispose method removes the registration.

.NET Framework
Available since 3.5
Return to top
Show: