Opc.Ua.Com.Client.AeTypeCache.FindType C# (CSharp) Method

FindType() public method

Returns the type identified by the category id and condition name.
public FindType ( ServerSystemContext context, Opc.Ua.NodeId nodeId ) : AeEventTypeState
context Opc.Ua.Server.ServerSystemContext
nodeId Opc.Ua.NodeId
return AeEventTypeState
        public AeEventTypeState FindType(ServerSystemContext context, NodeId nodeId)
        {
            if (NodeId.IsNull(nodeId))
            {
                return null;
            }

            BaseObjectTypeState eventType = null;

            if (!EventTypeNodes.TryGetValue(nodeId, out eventType))
            {
                return null;
            }

            return eventType as AeEventTypeState;
        }