Rediger

Del via


CounterSet(Guid, Guid, CounterSetInstanceType) Constructor

Definition

Initializes a new instance of the CounterSet class.

public:
 CounterSet(Guid providerGuid, Guid counterSetGuid, System::Diagnostics::PerformanceData::CounterSetInstanceType instanceType);
public CounterSet (Guid providerGuid, Guid counterSetGuid, System.Diagnostics.PerformanceData.CounterSetInstanceType instanceType);
[System.Security.SecurityCritical]
public CounterSet (Guid providerGuid, Guid counterSetGuid, System.Diagnostics.PerformanceData.CounterSetInstanceType instanceType);
new System.Diagnostics.PerformanceData.CounterSet : Guid * Guid * System.Diagnostics.PerformanceData.CounterSetInstanceType -> System.Diagnostics.PerformanceData.CounterSet
[<System.Security.SecurityCritical>]
new System.Diagnostics.PerformanceData.CounterSet : Guid * Guid * System.Diagnostics.PerformanceData.CounterSetInstanceType -> System.Diagnostics.PerformanceData.CounterSet
Public Sub New (providerGuid As Guid, counterSetGuid As Guid, instanceType As CounterSetInstanceType)

Parameters

providerGuid
Guid

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

counterSetGuid
Guid

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

instanceType
CounterSetInstanceType

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

Attributes

Exceptions

Not enough memory is available to complete the operation.

Not supported prior to Windows Vista.

One of the parameters is NULL or not valid.

An underlying Win32 function call failed.

Examples

For an example, see System.Diagnostics.PerformanceData.

Remarks

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

Applies to