The description of a value to read.
Example #1
0
        /// <summary>
        /// Validates a HistoryUpdateDetails parameter.
        /// </summary>
        public static ServiceResult Validate(HistoryUpdateDetails valueId)
        {
            // check for null structure.
            if (valueId == null)
            {
                return(StatusCodes.BadStructureMissing);
            }

            // null node ids are always invalid.
            if (NodeId.IsNull(valueId.NodeId))
            {
                return(StatusCodes.BadNodeIdInvalid);
            }

            // passed basic validation.
            return(null);
        }
        /// <summary>
        /// Validates a HistoryUpdateDetails parameter.
        /// </summary>
        public static ServiceResult Validate(HistoryUpdateDetails valueId)
        {
            // check for null structure.
            if (valueId == null)
            {
                return StatusCodes.BadStructureMissing;
            }

            // null node ids are always invalid.
            if (NodeId.IsNull(valueId.NodeId))
            {
                return StatusCodes.BadNodeIdInvalid;
            }
            
            // passed basic validation.
            return null;
        }