/// <summary> /// Sets the value of the <c>Units</c> attribute. /// </summary> /// <param name="val">A TimeUnits object</param> /// <remarks> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetUnits( TimeUnits val ) { SetField( InstrDTD.TIMEDURATION_UNITS, val ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="units">An Units</param> ///<param name="value">Gets or sets the content value of the &lt;TimeDuration&gt; element</param> /// public TimeDuration( TimeUnits units, decimal? value ) : base(InstrDTD.TIMEDURATION) { this.SetUnits( units ); this.Value = value; }
///<summary>Sets the value of the <c><Duration></c> element.</summary> /// <param name="Units">An Units</param> /// <param name="Value">Gets or sets the content value of the &lt;TimeDuration&gt; element</param> ///<remarks> /// <para>This form of <c>setDuration</c> is provided as a convenience method /// that is functionally equivalent to the <c>Duration</c></para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetDuration( TimeUnits Units, decimal? Value ) { RemoveChild( InstrDTD.ASSIGNMENTTIME_DURATION); AddChild( InstrDTD.ASSIGNMENTTIME_DURATION, new TimeDuration( Units, Value ) ); }