PerformanceCounterInstaller.CopyFromComponent(IComponent) Method

Definition

Copies all the properties from the specified component that are required at install time for a performance counter.

C#
public override void CopyFromComponent(System.ComponentModel.IComponent component);

Parameters

component
IComponent

The component to copy from.

Exceptions

The specified component is not a PerformanceCounter.

-or-

The specified PerformanceCounter is incomplete.

-or-

Multiple counters in different categories are trying to be installed.

Remarks

PerformanceCounterInstaller can only install multiple counters in the same category.

Applies to

Produkt Versioner
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1