コード例 #1
0
 ///<summary>Sets the value of the <c>&lt;DietaryPreferenceList&gt;</c> element.</summary>
 /// <param name="DietaryPreference">A DietaryPreference</param>
 ///<remarks>
 /// <para>This form of <c>setDietaryPreferenceList</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>DietaryPreferenceList</c></para>
 /// <para>Version: 2.6</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetDietaryPreferenceList(DietaryPreference DietaryPreference)
 {
     RemoveChild(CateringDTD.PERSONDIETARYPREFERENCE_DIETARYPREFERENCELIST);
     AddChild(CateringDTD.PERSONDIETARYPREFERENCE_DIETARYPREFERENCELIST, new DietaryPreferenceList(DietaryPreference));
 }
コード例 #2
0
 ///<summary>Sets the value of the <c>&lt;DietaryPreferenceList&gt;</c> element.</summary>
 /// <param name="DietaryPreference">A DietaryPreference</param>
 ///<remarks>
 /// <para>This form of <c>setDietaryPreferenceList</c> is provided as a convenience method
 /// that is functionally equivalent to the <c>DietaryPreferenceList</c></para>
 /// <para>Version: 2.5</para>
 /// <para>Since: 2.3</para>
 /// </remarks>
 public void SetDietaryPreferenceList( DietaryPreference DietaryPreference )
 {
     RemoveChild( CateringDTD.PERSONDIETARYPREFERENCE_DIETARYPREFERENCELIST);
     AddChild( CateringDTD.PERSONDIETARYPREFERENCE_DIETARYPREFERENCELIST, new DietaryPreferenceList( DietaryPreference ) );
 }