PerformanceCounterInstaller.CopyFromComponent(IComponent) Method
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.
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.