Esempio n. 1
0
 ///<summary>Sets the value of the <c>&lt;SchoolPhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies the phone number type. CBDS: 100144, 100217, S86</param>
 /// <param name="Number">Phone number. Validation:  0-9 and a leading '+' (for international calls). CBDS: 100145, 100218, S87</param>
 ///<remarks>
 /// <para>This form of <c>setSchoolPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>SchoolPhoneNumber</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetSchoolPhoneNumber( PhoneType Type, string Number )
 {
     RemoveChild( SchoolDTD.SCHOOLINFO_SCHOOLPHONENUMBER);
     AddChild( SchoolDTD.SCHOOLINFO_SCHOOLPHONENUMBER, new PhoneNumber( Type, Number ) );
 }
 ///<summary>Sets the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies the phone number type. CBDS: 100144, 100217, S86</param>
 /// <param name="Number">Phone number. Validation:  0-9 and a leading '+' (for international calls). CBDS: 100145, 100218, S87</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PhoneNumber</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetPhoneNumber( PhoneType Type, string Number )
 {
     RemoveChild( CommonDTD.PERSONALINFORMATION_PHONENUMBER);
     AddChild( CommonDTD.PERSONALINFORMATION_PHONENUMBER, new PhoneNumber( Type, Number ) );
 }
Esempio n. 3
0
 ///<summary>Adds the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies the phone number type. CBDS: 100144, 100217, S86</param>
 /// <param name="Number">Phone number. Validation:  0-9 and a leading '+' (for international calls). CBDS: 100145, 100218, S87</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the method <c>AddPhoneNumber</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void AddPhoneNumber(PhoneType Type, string Number)
 {
     AddChild(CommonDTD.PHONENUMBERLIST_PHONENUMBER, new PhoneNumber(Type, Number));
 }
Esempio n. 4
0
 ///<summary>Sets the value of the <c>&lt;PhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies the phone number type. CBDS: 100144, 100217, S86</param>
 /// <param name="Number">Phone number. Validation:  0-9 and a leading '+' (for international calls). CBDS: 100145, 100218, S87</param>
 ///<remarks>
 /// <para>This form of <c>setPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>PhoneNumber</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetPhoneNumber(PhoneType Type, string Number)
 {
     RemoveChild(CommonDTD.PERSONALINFORMATION_PHONENUMBER);
     AddChild(CommonDTD.PERSONALINFORMATION_PHONENUMBER, new PhoneNumber(Type, Number));
 }
Esempio n. 5
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Code that specifies the phone number type. CBDS: 100144, 100217, S86</param>
 ///<param name="number">Phone number. Validation:  0-9 and a leading '+' (for international calls). CBDS: 100145, 100218, S87</param>
 ///
 public PhoneNumber( PhoneType type, string number )
     : base(CommonDTD.PHONENUMBER)
 {
     this.SetType( type );
     this.Number = number;
 }
Esempio n. 6
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A PhoneType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Code that specifies the phone number type. CBDS: 100144, 100217, S86"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetType( PhoneType val )
 {
     SetField( CommonDTD.PHONENUMBER_TYPE, val );
 }
Esempio n. 7
0
 ///<summary>Sets the value of the <c>&lt;LAPhoneNumber&gt;</c> element.</summary>
 /// <param name="Type">Code that specifies the phone number type. CBDS: 100144, 100217, S86</param>
 /// <param name="Number">Phone number. Validation:  0-9 and a leading '+' (for international calls). CBDS: 100145, 100218, S87</param>
 ///<remarks>
 /// <para>This form of <c>setLAPhoneNumber</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>LAPhoneNumber</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetLAPhoneNumber( PhoneType Type, string Number )
 {
     RemoveChild( SchoolDTD.LAINFO_LAPHONENUMBER);
     AddChild( SchoolDTD.LAINFO_LAPHONENUMBER, new PhoneNumber( Type, Number ) );
 }
Esempio n. 8
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A PhoneType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "Code that specifies the phone number type. CBDS: 100144, 100217, S86"</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetType(PhoneType val)
 {
     SetField(CommonDTD.PHONENUMBER_TYPE, val);
 }
Esempio n. 9
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">Code that specifies the phone number type. CBDS: 100144, 100217, S86</param>
 ///<param name="number">Phone number. Validation:  0-9 and a leading '+' (for international calls). CBDS: 100145, 100218, S87</param>
 ///
 public PhoneNumber(PhoneType type, string number) : base(CommonDTD.PHONENUMBER)
 {
     this.SetType(type);
     this.Number = number;
 }