/// <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); }
/// <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; }
///<summary>Sets the value of the <c><CreationUser></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 ) ); }
/// <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; }
/// <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 ); }
///<summary>Sets the value of the <c><CreationUser></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)); }