Example #1
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A CreationUserType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The role of the staff member for that created this attendance record."</para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetType(CreationUserType val)
 {
     SetField(GradebookDTD.CREATIONUSER_TYPE, val);
 }
Example #2
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">The role of the staff member for that created this attendance record.</param>
 ///<param name="userId">An UserId</param>
 ///
 public CreationUser(CreationUserType type, string userId) : base(GradebookDTD.CREATIONUSER)
 {
     this.SetType(type);
     this.UserId = userId;
 }
Example #3
0
 ///<summary>Sets the value of the <c>&lt;CreationUser&gt;</c> element.</summary>
 /// <param name="Type">The role of the staff member for that created this attendance record.</param>
 /// <param name="UserId">An UserId</param>
 ///<remarks>
 /// <para>This form of <c>setCreationUser</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>CreationUser</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetCreationUser( CreationUserType Type, string UserId )
 {
     RemoveChild( GradebookDTD.AUDITINFO_CREATIONUSER);
     AddChild( GradebookDTD.AUDITINFO_CREATIONUSER, new CreationUser( Type, UserId ) );
 }
Example #4
0
 /// <summary>
 /// Constructor that accepts values for all mandatory fields
 /// </summary>
 ///<param name="type">The role of the staff member for that created this attendance record.</param>
 ///<param name="userId">An UserId</param>
 ///
 public CreationUser( CreationUserType type, string userId )
     : base(GradebookDTD.CREATIONUSER)
 {
     this.SetType( type );
     this.UserId = userId;
 }
Example #5
0
 /// <summary>
 /// Sets the value of the <c>Type</c> attribute.
 /// </summary>
 /// <param name="val">A CreationUserType object</param>
 /// <remarks>
 /// <para>The SIF specification defines the meaning of this attribute as: "The role of the staff member for that created this attendance record."</para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetType( CreationUserType val )
 {
     SetField( GradebookDTD.CREATIONUSER_TYPE, val );
 }
Example #6
0
 ///<summary>Sets the value of the <c>&lt;CreationUser&gt;</c> element.</summary>
 /// <param name="Type">The role of the staff member for that created this attendance record.</param>
 /// <param name="UserId">An UserId</param>
 ///<remarks>
 /// <para>This form of <c>setCreationUser</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>CreationUser</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.4</para>
 /// </remarks>
 public void SetCreationUser(CreationUserType Type, string UserId)
 {
     RemoveChild(GradebookDTD.AUDITINFO_CREATIONUSER);
     AddChild(GradebookDTD.AUDITINFO_CREATIONUSER, new CreationUser(Type, UserId));
 }