///<summary>Sets the value of the <c><SchoolPhoneNumber></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><PhoneNumber></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 ) ); }
///<summary>Adds the value of the <c><PhoneNumber></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)); }
///<summary>Sets the value of the <c><PhoneNumber></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)); }
/// <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; }
/// <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 ); }
///<summary>Sets the value of the <c><LAPhoneNumber></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 ) ); }
/// <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); }
/// <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; }