/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">This attribute indicates the encoding of the format reference.</param> ///<param name="contentType">The vendor-defined content type (e.g. com.vendor.format, PDF, etc.</param> ///<param name="value">Gets or sets the content value of the &lt;ReportFormat&gt; element</param> /// public ReportFormat( ReportFormatType type, string contentType, string value ) : base(ReportingDTD.REPORTFORMAT) { this.SetType( type ); this.ContentType = contentType; this.Value = value; }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A ReportFormatType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "This attribute indicates the encoding of the format reference."</para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetType( ReportFormatType val ) { SetField( ReportingDTD.REPORTFORMAT_TYPE, val ); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">This attribute indicates the encoding of the format reference.</param> ///<param name="contentType">The vendor-defined content type (e.g. com.vendor.format, PDF, etc.</param> ///<param name="value">Gets or sets the content value of the &lt;ReportFormat&gt; element</param> /// public ReportFormat(ReportFormatType type, string contentType, string value) : base(ReportingDTD.REPORTFORMAT) { this.SetType(type); this.ContentType = contentType; this.Value = value; }
///<summary>Adds the value of the <c><ReportFormat></c> element.</summary> /// <param name="Type">This attribute indicates the encoding of the format reference.</param> /// <param name="ContentType">The vendor-defined content type (e.g. com.vendor.format, PDF, etc.</param> /// <param name="Value">Gets or sets the content value of the &lt;ReportFormat&gt; element</param> ///<remarks> /// <para>This form of <c>setReportFormat</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddReportFormat</c></para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void AddReportFormat(ReportFormatType Type, string ContentType, string Value) { AddChild(ReportingDTD.REPORTFORMATLIST_REPORTFORMAT, new ReportFormat(Type, ContentType, Value)); }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A ReportFormatType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "This attribute indicates the encoding of the format reference."</para> /// <para>Version: 2.6</para> /// <para>Since: 2.3</para> /// </remarks> public void SetType(ReportFormatType val) { SetField(ReportingDTD.REPORTFORMAT_TYPE, val); }