Opc.Ua.Com.Server.ComAeNamespaceMapper.GetAttribute C# (CSharp) Method

GetAttribute() public method

Returns the attribute with the specified event type id and browse path.
public GetAttribute ( NodeId typeId ) : AeEventAttribute
typeId NodeId
return AeEventAttribute
        public AeEventAttribute GetAttribute(NodeId typeId, params string[] browseNames)
        {
            AeEventCategory category = null;

            if (!this.m_eventTypes.TryGetValue(typeId, out category))
            {
                return null;
            }

            StringBuilder buffer = new StringBuilder();

            if (browseNames != null)
            {
                for (int ii = 0; ii < browseNames.Length; ii++)
                {
                    if (buffer.Length > 0)
                    {
                        buffer.Append('/');
                    }

                    buffer.Append(browseNames[ii]);
                }
            }

            string targetPath = buffer.ToString();

            if (!String.IsNullOrEmpty(targetPath))
            {
                for (int ii = 0; ii < category.Attributes.Count; ii++)
                {
                    if (category.Attributes[ii].BrowsePathDisplayText == targetPath)
                    {
                        return category.Attributes[ii];
                    }
                }
            }

            return null;
        }
   

Same methods

ComAeNamespaceMapper::GetAttribute ( uint attributeId ) : AeEventAttribute