Opc.Ua.Com.Server.DaElement.SupportsProperty C# (CSharp) Method

SupportsProperty() public method

Returns true if the element supports the specified property.
public SupportsProperty ( int propertyId ) : bool
propertyId int The property id.
return bool
        public bool SupportsProperty(int propertyId)
        {
            if (m_properties != null)
            {
                for (int ii = 0; ii < m_properties.Length; ii++)
                {
                    if (propertyId == m_properties[ii].PropertyId)
                    {
                        return true;
                    }
                }
            }

            return false;
        }
        #endregion