///<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: 1.5r1</para> /// </remarks> public void SetEmail( EmailType Type, string Value ) { RemoveChild( InstrDTD.SOURCEAUTHOR_EMAIL); AddChild( InstrDTD.SOURCEAUTHOR_EMAIL, new Email( Type, 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: 1.1</para> /// </remarks> public void SetType( EmailType val ) { SetField( CommonDTD.EMAIL_TYPE, val ); }
/// <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><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: 1.5r1</para> /// </remarks> public void SetEmail(EmailType Type, string Value) { RemoveChild(CommonDTD.LRCONTACT_EMAIL); AddChild(CommonDTD.LRCONTACT_EMAIL, new Email(Type, Value)); }
///<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.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetEmail( EmailType Type, string Value ) { RemoveChild( InstrDTD.RESOURCECONTACT_EMAIL); AddChild( InstrDTD.RESOURCECONTACT_EMAIL, new Email( Type, Value ) ); }
/// <summary> /// Removes an <see cref="Email"/> object instance. More than one instance can be defined for this object because it is a repeatable field element. /// </summary> /// <param name="Type">Identifies the Email object to remove by its Type value</param> /// <remarks> /// <para>Version: 1.5r1</para> /// <para>Since: 1.5r1</para> /// </remarks> public void RemoveEmail( EmailType Type ) { RemoveChild( HrfinDTD.VENDORINFO_EMAIL, new String[] { Type.ToString() } ); }
///<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.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetEmail( EmailType Type, string Value ) { RemoveChild( CommonDTD.LRCONTACT_EMAIL); AddChild( CommonDTD.LRCONTACT_EMAIL, new Email( Type, Value ) ); }
/// <summary> /// Gets an <see cref="Email"/> object instance. More than one instance can be defined for this object because it is a repeatable field element. /// </summary> /// <param name="Type">Identifies the Email object to return by its "Type" attribute value</param> /// <returns>An Email object</returns> /// <remarks> /// <para>Version: 1.5r1</para> /// <para>Since: 1.5r1</para> /// </remarks> public Email GetEmail( EmailType Type ) { return (Email)GetChild( HrfinDTD.VENDORINFO_EMAIL, new string[] { Type.ToString() } ); }
///<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: 1.5r1</para> /// <para>Since: 1.5r1</para> /// </remarks> public void AddEmail( EmailType Type, string Value ) { AddChild( HrfinDTD.VENDORINFO_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: 1.1</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: 1.1</para> /// </remarks> public void AddEmail(EmailType Type, string Value) { AddChild(CommonDTD.EMAILLIST_EMAIL, new Email(Type, Value)); }