///<summary>Sets the value of the <c><Email></c> element.</summary> /// <param name="Type"> /// This attribute specifies the type of e-mail address</param> /// <param name="Value">Gets or sets the content value of the &lt;Email&gt; element</param> ///<remarks> /// <para>This form of <c>setEmail</c> is provided as a convenience method /// that is functionally equivalent to the <c>Email</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.4</para> /// </remarks> public void SetEmail( EmailType Type, string Value ) { RemoveChild( LearningDTD.CONTACT_EMAIL); AddChild( LearningDTD.CONTACT_EMAIL, new Email( Type, Value ) ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type"> /// This attribute specifies the type of e-mail address</param> ///<param name="value">Gets or sets the content value of the &lt;Email&gt; element</param> /// public Email( EmailType type, string value ) : base(CommonDTD.EMAIL) { this.SetType( type ); this.Value = value; }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A EmailType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: " /// This attribute specifies the type of e-mail address"</para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetType( EmailType val ) { SetField( CommonDTD.EMAIL_TYPE, val ); }
///<summary>Adds the value of the <c><Email></c> element.</summary> /// <param name="Type"> /// This attribute specifies the type of e-mail address</param> /// <param name="Value">Gets or sets the content value of the &lt;Email&gt; element</param> ///<remarks> /// <para>This form of <c>setEmail</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddEmail</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void AddEmail(EmailType Type, string Value) { AddChild(CommonDTD.EMAILLIST_EMAIL, new Email(Type, Value)); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type"> /// This attribute specifies the type of e-mail address</param> ///<param name="value">Gets or sets the content value of the &lt;Email&gt; element</param> /// public Email(EmailType type, string value) : base(CommonDTD.EMAIL) { this.SetType(type); this.Value = value; }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A EmailType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: " /// This attribute specifies the type of e-mail address"</para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetType(EmailType val) { SetField(CommonDTD.EMAIL_TYPE, val); }