Opc.Ua.MethodNode.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 override ServiceResult Write(uint attributeId, object value)
        {
            switch (attributeId)
            {
                case Attributes.Executable:     { m_executable     = (bool)value; return ServiceResult.Good; }
                case Attributes.UserExecutable: { m_userExecutable = (bool)value; return ServiceResult.Good; }
            }

            return base.Write(attributeId, value);
        }
        #endregion