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 对象。

备注

可以使用此属性检查报表区域是否包含报表。

**“ReportViewer”**控件在 ASP.NET 页的生命周期中更改此属性的值。在 ReportViewer.PreRender 事件完成之前,此属性可以设置为 Unknown。其值在 ReportViewer.PreRender 事件之后终止。

请参阅

参考

ReportViewer 类

Microsoft.Reporting.WebForms 命名空间