Opc.Ua.VariableNode.SupportsAttribute C# (CSharp) Method

SupportsAttribute() public method

Whether the node supports the specified attribute.
public SupportsAttribute ( uint attributeId ) : bool
attributeId uint The attribute id.
return bool
        public override bool SupportsAttribute(uint attributeId)
        {
            switch (attributeId)
            {
                case Attributes.Value:
                case Attributes.DataType:
                case Attributes.ValueRank:
                case Attributes.AccessLevel:
                case Attributes.UserAccessLevel:
                case Attributes.MinimumSamplingInterval:
                case Attributes.Historizing:
                {
                    return true;
                }

                case Attributes.ArrayDimensions:
                {
                    if (m_arrayDimensions == null || m_arrayDimensions.Count == 0)
                    {
                        return false;
                    }

                    return true;
                }
            }

            return base.SupportsAttribute(attributeId);
        }