Opc.Ua.Client.MonitoredItem.GetServiceResult C# (CSharp) Method

GetServiceResult() public static method

The service result for a data change notification.
public static GetServiceResult ( IEncodeable notification ) : ServiceResult
notification IEncodeable
return ServiceResult
        public static ServiceResult GetServiceResult(IEncodeable notification)
        {
            MonitoredItemNotification datachange = notification as MonitoredItemNotification;

            if (datachange == null)
            {
                return null;
            }

            NotificationMessage message = datachange.Message;

            if (message != null)
            {
                return null;
            }

            return new ServiceResult(datachange.Value.StatusCode, datachange.DiagnosticInfo, message.StringTable);
        }

Same methods

MonitoredItem::GetServiceResult ( IEncodeable notification, int index ) : ServiceResult