Edit

Share via


PerformanceCounterInstaller.CopyFromComponent(IComponent) Method

Definition

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

public:
 override void CopyFromComponent(System::ComponentModel::IComponent ^ component);
public override void CopyFromComponent (System.ComponentModel.IComponent component);
override this.CopyFromComponent : System.ComponentModel.IComponent -> unit
Public Overrides Sub CopyFromComponent (component As IComponent)

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