CounterSet Constructor
Initializes a new instance of the CounterSet class.
Assembly: System.Core (in System.Core.dll)
'Declaration Public Sub New ( _ providerGuid As Guid, _ counterSetGuid As Guid, _ instanceType As CounterSetInstanceType _ ) 'Usage Dim providerGuid As Guid Dim counterSetGuid As Guid Dim instanceType As CounterSetInstanceType Dim instance As New CounterSet(providerGuid, _ counterSetGuid, 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. |
For an example, see System.Diagnostics.PerformanceData.
Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.