예제 #1
0
 ///<summary>Sets the value of the <c>&lt;Email&gt;</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 &amp;lt;Email&amp;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 ) );
 }
예제 #2
0
 /// <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 &amp;lt;Email&amp;gt; element</param>
 ///
 public Email( EmailType type, string value )
     : base(CommonDTD.EMAIL)
 {
     this.SetType( type );
     this.Value = value;
 }
예제 #3
0
 /// <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 );
 }
예제 #4
0
 ///<summary>Adds the value of the <c>&lt;Email&gt;</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 &amp;lt;Email&amp;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));
 }
예제 #5
0
 /// <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 &amp;lt;Email&amp;gt; element</param>
 ///
 public Email(EmailType type, string value) : base(CommonDTD.EMAIL)
 {
     this.SetType(type);
     this.Value = value;
 }
예제 #6
0
 /// <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);
 }