Opc.Ua.Server.BaseEvent.GetAttributeValue C# (CSharp) Method

GetAttributeValue() public method

public GetAttributeValue ( FilterContext context, NodeId typeDefinitionId, IList relativePath, uint attributeId, NumericRange indexRange ) : object
context FilterContext
typeDefinitionId NodeId
relativePath IList
attributeId uint
indexRange NumericRange
return object
        public virtual object GetAttributeValue(
            FilterContext        context,
            NodeId               typeDefinitionId,
            IList<QualifiedName> relativePath,
            uint                 attributeId,
            NumericRange         indexRange)
        {
            if (context == null) throw new ArgumentNullException("context");
            
            // read the attribute value.
            DataValue dataValue = ReadAttributeValue(
                context,
                typeDefinitionId,
                relativePath,
                attributeId,
                indexRange);

            if (StatusCode.IsBad(dataValue.StatusCode))
            {
                return dataValue.StatusCode;
            }
                        
            // return the value.
            return dataValue.Value;
        }
	    #endregion