///<summary>Adds the value of the <c><AlertMessage></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;AlertMessage&gt; element</param> ///<remarks> /// <para>This form of <c>setAlertMessage</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddAlertMessage</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void AddAlertMessage(AlertMessageType Type, string Value) { AddChild(StudentDTD.ALERTMESSAGES_ALERTMESSAGE, new AlertMessage(Type, Value)); }
/// <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;AlertMessage&gt; element</param> /// public AlertMessage(AlertMessageType type, string value) : base(StudentDTD.ALERTMESSAGE) { this.SetType(type); this.Value = value; }
/// <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;AlertMessage&gt; element</param> /// public AlertMessage( AlertMessageType type, string value ) : base(StudentDTD.ALERTMESSAGE) { this.SetType( type ); this.Value = value; }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A AlertMessageType 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.3</para> /// </remarks> public void SetType(AlertMessageType val) { SetField(StudentDTD.ALERTMESSAGE_TYPE, val); }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A AlertMessageType 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.3</para> /// </remarks> public void SetType( AlertMessageType val ) { SetField( StudentDTD.ALERTMESSAGE_TYPE, val ); }