/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">Values: SampleSize, Description</param> ///<param name="value">Gets or sets the content value of the &lt;ExclusionRule&gt; element</param> /// public ExclusionRule(ExclusionRuleType type, string value) : base(DwDTD.EXCLUSIONRULE) { this.SetType(type); this.Value = value; }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A ExclusionRuleType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Values: SampleSize, Description"</para> /// <para>Version: 2.6</para> /// <para>Since: 2.4</para> /// </remarks> public void SetType(ExclusionRuleType val) { SetField(DwDTD.EXCLUSIONRULE_TYPE, val); }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A ExclusionRuleType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Values: SampleSize, Description"</para> /// <para>Version: 2.5</para> /// <para>Since: 2.4</para> /// </remarks> public void SetType( ExclusionRuleType val ) { SetField( DwDTD.EXCLUSIONRULE_TYPE, val ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">Values: SampleSize, Description</param> ///<param name="value">Gets or sets the content value of the &lt;ExclusionRule&gt; element</param> /// public ExclusionRule( ExclusionRuleType type, string value ) : base(DwDTD.EXCLUSIONRULE) { this.SetType( type ); this.Value = value; }
///<summary>Adds the value of the <c><ExclusionRule></c> element.</summary> /// <param name="Type">Values: SampleSize, Description</param> /// <param name="Value">Gets or sets the content value of the &lt;ExclusionRule&gt; element</param> ///<remarks> /// <para>This form of <c>setExclusionRule</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddExclusionRule</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.4</para> /// </remarks> public void AddExclusionRule(ExclusionRuleType Type, string Value) { AddChild(DwDTD.EXCLUSIONRULES_EXCLUSIONRULE, new ExclusionRule(Type, Value)); }