Class ComponentEventArgs
Arguments passed to component event handlers.
public class ComponentEventArgs : EventArgs
- Inheritance
-
ComponentEventArgs
- Inherited Members
Constructors
ComponentEventArgs(ComponentStatus, Unit, UnitComponent)
Initializes a new instance of the ComponentEventArgs class.
public ComponentEventArgs(ComponentStatus status, Unit unit, UnitComponent removedUnitComponent)
Parameters
status
ComponentStatusThe component status.
unit
UnitThe unit information.
removedUnitComponent
UnitComponentThe component information about any component that was removed as a result of this event.
Properties
RemovedUnitComponent
Gets the component information about any component that was removed as a result of this event, or null if there was none removed.
public UnitComponent RemovedUnitComponent { get; }
Property Value
Remarks
Only the ComponentType associated entity will not be initialized (i.e., other navigation properties will be null or empty collections).
Status
Gets the component status, which is what will be sent to the client that initiated the component scan or removal.
public ComponentStatus Status { get; }
Property Value
Remarks
The UnitComponent property will contain the new component status. If a component was removed, IsInstalled will be false.
Unit
Gets the unit information.
public Unit Unit { get; }
Property Value
Remarks
No associated entities will be initialized (i.e., navigation properties will be null or empty collections).