EndFunctionalGroup Event
Fires whenever a control segment is read that marks the end of an interchange.
Syntax
public event OnEndFunctionalGroupHandler OnEndFunctionalGroup; public delegate void OnEndFunctionalGroupHandler(object sender, X12validatorEndFunctionalGroupEventArgs e); public class X12validatorEndFunctionalGroupEventArgs : EventArgs { public string Tag { get; } public string ControlNumber { get; } public int Count { get; } public string FullSegment { get; } }
Public Event OnEndFunctionalGroup As OnEndFunctionalGroupHandler Public Delegate Sub OnEndFunctionalGroupHandler(sender As Object, e As X12validatorEndFunctionalGroupEventArgs) Public Class X12validatorEndFunctionalGroupEventArgs Inherits EventArgs Public ReadOnly Property Tag As String Public ReadOnly Property ControlNumber As String Public ReadOnly Property Count As Integer Public ReadOnly Property FullSegment As String End Class
Remarks
The EndFunctionalGroup event will fire when a control segment marking the end of a functional group is read. The Tag parameter contains the tag of the segment, such as GE. ControlNumber contains the control number associated with the segment, and links this event with the corresponding StartFunctionalGroup event. Count contains the value of the count element included in the closing segment, which identifies the number of transactions in a functional group.