/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">This attribute specifies what type of alert message this is.</param> ///<param name="value">Gets or sets the content value of the &lt;AlertMsg&gt; element</param> /// public AlertMsg( AlertMsgType type, string value ) : base(CommonDTD.ALERTMSG) { this.SetType( type ); this.Value = value; }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A AlertMsgType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "This attribute specifies what type of alert message this is."</para> /// <para>Version: 2.5</para> /// <para>Since: 2.0</para> /// </remarks> public void SetType( AlertMsgType val ) { SetField( CommonDTD.ALERTMSG_TYPE, val ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">This attribute specifies what type of alert message this is.</param> ///<param name="value">Gets or sets the content value of the &lt;AlertMsg&gt; element</param> /// public AlertMsg(AlertMsgType type, string value) : base(CommonDTD.ALERTMSG) { this.SetType(type); this.Value = value; }
///<summary>Adds the value of the <c><AlertMsg></c> element.</summary> /// <param name="Type">This attribute specifies what type of alert message this is.</param> /// <param name="Value">Gets or sets the content value of the &lt;AlertMsg&gt; element</param> ///<remarks> /// <para>This form of <c>setAlertMsg</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddAlertMsg</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void AddAlertMsg(AlertMsgType Type, string Value) { AddChild(CommonDTD.ALERTMSGLIST_ALERTMSG, new AlertMsg(Type, Value)); }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A AlertMsgType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "This attribute specifies what type of alert message this is."</para> /// <para>Version: 2.6</para> /// <para>Since: 2.0</para> /// </remarks> public void SetType(AlertMsgType val) { SetField(CommonDTD.ALERTMSG_TYPE, val); }