CounterSet(Guid, Guid, CounterSetInstanceType) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기