Safety Event Constructor
Initializes a new instance of the SafetyEvent class with the specified source, name, ID, trigger, type, description and time.
Definition
Namespace: SafetyMonitorExtension
Assembly: SafetyMonitoExtension (in SafetyMonitoExtension.dll) Version: 0.1+d75ea7ab874235e354c93329218ac96a84f66202
Assembly: SafetyMonitoExtension (in SafetyMonitoExtension.dll) Version: 0.1+d75ea7ab874235e354c93329218ac96a84f66202
C#
public SafetyEvent(
string source,
string name,
string id,
SafetyEventType type,
SafetyEventTrigger trigger,
string description
)VB
Public Sub New (
source As String,
name As String,
id As String,
type As SafetyEventType,
trigger As SafetyEventTrigger,
description As String
)Parameters
- source String
- The component that generated the event.
- name String
- A short name for the rule that triggered this event.
- id String
- A unique ID, defined by the event source, to identify the rule that triggered this event. See Id for more details.
- type SafetyEventType
- The type of safety event.
- trigger SafetyEventTrigger
- The condition that triggered the safety event.
- description String
- A description providing additional context about the safety event.
Remarks
The EventTimeUtc property should be automatically set to the current UTC time when the event is created.