UnknownAttr Event
Fires when an unknown attribute is found in an incoming message.
Syntax
public event OnUnknownAttrHandler OnUnknownAttr; public delegate void OnUnknownAttrHandler(object sender, TurnUnknownAttrEventArgs e); public class TurnUnknownAttrEventArgs : EventArgs { public int AttrType { get; } public string Value { get; }
public byte[] ValueB { get; } public bool Required { get; } public bool Handled { get; set; } }
Public Event OnUnknownAttr As OnUnknownAttrHandler Public Delegate Sub OnUnknownAttrHandler(sender As Object, e As TurnUnknownAttrEventArgs) Public Class TurnUnknownAttrEventArgs Inherits EventArgs Public ReadOnly Property AttrType As Integer Public ReadOnly Property Value As String
Public ReadOnly Property ValueB As Byte() Public ReadOnly Property Required As Boolean Public Property Handled As Boolean End Class
Remarks
This event fires for each unknown attribute (i.e., attributes unrecognized by the component) found while parsing an incoming message.
The AttrType parameter indicates the unknown attribute's type.
The Value parameter reflects the data carried by the attribute, if any.
The Required parameter indicates whether the unknown attribute is comprehension-required (True) or comprehension-optional (False). Comprehension-required attributes must be handled, otherwise the component will immediately stop parsing and discard the message.
The Handled parameter should be set to specify whether the unknown attribute has been handled.