コード例 #1
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="personRefId">It is important to note that using the same GUID a person may have a LearnerPersonal record, a WorkforcePersonal record, and a ContactPersonal record all at the same time.  This same picture is applicable regardless of the associated object type(s).</param>
 ///<param name="sifRefObjectList">A list of one or more "personal" object type codes representing objects that can be requested for this person using the specified PersonRefId.</param>
 ///<param name="schoolYear">School year for which this enrolment is applicable, expressed as the four-digit year in which the school year ends (e.g. 2007 for the 2006/07 school year).</param>
 ///<param name="pictureSource">This element defines the picture. If the Type attribute is URL, this is the location of the picture in [JPEG] format; if Type is JPEG, this is the [JPEG] image data encoded using the Base64 Content-Transfer-Encoding defined in Section 6.8 of [RFC 2045]. CBDS: 100019</param>
 ///
 public PersonPicture( string personRefId, SIF_RefObject sifRefObjectList, int? schoolYear, PictureSource pictureSource )
     : base(Adk.SifVersion, SchoolDTD.PERSONPICTURE)
 {
     this.PersonRefId = personRefId;
     this.SIF_RefObjectList =  new SIF_RefObjectList( sifRefObjectList );
     this.SchoolYear = schoolYear;
     this.PictureSource = pictureSource;
 }
コード例 #2
0
 ///<summary>Sets the value of the <c>&lt;SIF_RefObjectList&gt;</c> element.</summary>
 /// <param name="SifRefObject">The name of the "personal" object that this picture represents. Values: LearnerPersonal, WorkforcePersonal, ContactPersonal</param>
 ///<remarks>
 /// <para>This form of <c>setSIF_RefObjectList</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>SIF_RefObjectList</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.0</para>
 /// </remarks>
 public void SetSIF_RefObjectList( SIF_RefObject SifRefObject )
 {
     RemoveChild( SchoolDTD.PERSONPICTURE_SIF_REFOBJECTLIST);
     AddChild( SchoolDTD.PERSONPICTURE_SIF_REFOBJECTLIST, new SIF_RefObjectList( SifRefObject ) );
 }