/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="contactName">The name of the principal.</param> /// public PrincipalInfo( ContactName contactName ) : base(CommonDTD.PRINCIPALINFO) { this.ContactName = contactName; }
///<summary>Sets the value of the <c><PrincipalInfo></c> element.</summary> /// <param name="ContactName">The name of the principal.</param> ///<remarks> /// <para>This form of <c>setPrincipalInfo</c> is provided as a convenience method /// that is functionally equivalent to the <c>PrincipalInfo</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetPrincipalInfo( ContactName ContactName ) { RemoveChild( SchoolDTD.SCHOOLINFO_PRINCIPALINFO); AddChild( SchoolDTD.SCHOOLINFO_PRINCIPALINFO, new PrincipalInfo( ContactName ) ); }
///<summary>Sets the value of the <c><PrincipalInfo></c> element.</summary> /// <param name="ContactName">The name of the principal.</param> ///<remarks> /// <para>This form of <c>setPrincipalInfo</c> is provided as a convenience method /// that is functionally equivalent to the <c>PrincipalInfo</c></para> /// <para>Version: 2.5</para> /// <para>Since: 2.3</para> /// </remarks> public void SetPrincipalInfo( ContactName ContactName ) { RemoveChild( StudentDTD.STUDENTSDTN_PRINCIPALINFO); AddChild( StudentDTD.STUDENTSDTN_PRINCIPALINFO, new PrincipalInfo( ContactName ) ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="contactName">The name of the principal.</param> /// public PrincipalInfo(ContactName contactName) : base(CommonDTD.PRINCIPALINFO) { this.ContactName = contactName; }