Opc.Ua.Com.Server.ComHdaItemManager.GetReadValueId C# (CSharp) Method

GetReadValueId() private method

Gets the read value id for the specified attribute.
private GetReadValueId ( ReadValueIdCollection supportedAttributes, uint attributeId ) : ReadValueId
supportedAttributes ReadValueIdCollection The supported attributes.
attributeId uint The attribute id.
return ReadValueId
        private ReadValueId GetReadValueId(ReadValueIdCollection supportedAttributes, uint attributeId)
        {
            for (int jj = 0; jj < supportedAttributes.Count; jj++)
            {
                ReadValueId valueToRead = supportedAttributes[jj];

                if ((uint)valueToRead.Handle == attributeId)
                {
                    return valueToRead;
                }
            }

            return null;
        }