Share via


ReportViewer.ReportAreaContentType 屬性

取得 ReportAreaContent 物件,這個物件表示報表區域的目前內容類型。

命名空間:  Microsoft.Reporting.WebForms
組件:  Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)

語法

'宣告
<BrowsableAttribute(False)> _
Public ReadOnly Property ReportAreaContentType As ReportAreaContent
[BrowsableAttribute(false)]
public ReportAreaContent ReportAreaContentType { get; }
[BrowsableAttribute(false)]
public:
property ReportAreaContent ReportAreaContentType {
    ReportAreaContent get ();
}
[<BrowsableAttribute(false)>]
member ReportAreaContentType : ReportAreaContent with get
function get ReportAreaContentType () : ReportAreaContent

屬性值

類型:Microsoft.Reporting.WebForms.ReportAreaContent
ReportAreaContent 物件。

備註

您可以使用這個屬性檢查報表區域是否包含報表。

在 ASP.NET 網頁生命週期期間,ReportViewer 控制項會變更這個屬性的值。在 ReportViewer.PreRender 事件完成之前,這個屬性可能會設定為 Unknown。在 ReportViewer.PreRender 事件之後,它的值會終結。

請參閱

參考

ReportViewer 類別

Microsoft.Reporting.WebForms 命名空間