Opc.Ua.Com.Client.HdaSubscribeRequestManager.HasExternalSource C# (CSharp) Method

HasExternalSource() private method

Determines whether the attribute has an external source.
private HasExternalSource ( NodeState node, uint attributeId ) : bool
node NodeState
attributeId uint
return bool
        private bool HasExternalSource(NodeState node, uint attributeId)
        {
            HdaItemState item = node as HdaItemState;

            if (item != null)
            {
                switch (attributeId)
                {
                    case Attributes.DataType:
                    case Attributes.ValueRank:
                    case Attributes.Description:
                    case Attributes.Historizing:
                    {
                        return true;
                    }
                }

                return false;
            }

            HdaAttributeState attribute = node as HdaAttributeState;

            if (attribute != null)
            {
                switch (attributeId)
                {
                    case Attributes.Value:
                    case Attributes.AccessLevel:
                    case Attributes.UserAccessLevel:
                    {
                        return true;
                    }
                }

                return false;
            }

            return false;
        }