Opc.Ua.Node.Write C# (CSharp) Method

Write() protected method

Writes the value of an attribute.
protected Write ( uint attributeId, object value ) : ServiceResult
attributeId uint The attribute id.
value object The value.
return ServiceResult
        protected virtual ServiceResult Write(uint attributeId, object value)
        {
            switch (attributeId)
            {
                case Attributes.BrowseName:    { m_browseName    = (QualifiedName)value; break; }
                case Attributes.DisplayName:   { m_displayName   = (LocalizedText)value; break; }
                case Attributes.Description:   { m_description   = (LocalizedText)value; break; }
                case Attributes.WriteMask:     { m_writeMask     = (uint)value; break; }
                case Attributes.UserWriteMask: { m_userWriteMask = (uint)value; break; }

                default:
                {
                    return StatusCodes.BadAttributeIdInvalid;
                }
            }

            return ServiceResult.Good;
        }
        #endregion

Same methods

Node::Write ( uint attributeId, Opc.Ua.DataValue value ) : ServiceResult