共用方式為


ViewStateDisabledException 類別

ReportViewer 控制項偵測到檢視狀態已停用時發生。

繼承階層

System.Object
  System.Exception
    Microsoft.Reporting.WebForms.ReportViewerException
      Microsoft.Reporting.WebForms.ViewStateDisabledException

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

語法

'宣告
<SerializableAttribute> _
Public NotInheritable Class ViewStateDisabledException _
    Inherits ReportViewerException
'用途
Dim instance As ViewStateDisabledException
[SerializableAttribute]
public sealed class ViewStateDisabledException : ReportViewerException
[SerializableAttribute]
public ref class ViewStateDisabledException sealed : public ReportViewerException
[<SealedAttribute>]
[<SerializableAttribute>]
type ViewStateDisabledException =  
    class
        inherit ReportViewerException
    end
public final class ViewStateDisabledException extends ReportViewerException

ViewStateDisabledException 型別公開下列成員。

屬性

  名稱 說明
公用屬性 Data (繼承自 Exception。)
公用屬性 HelpLink (繼承自 Exception。)
受保護的屬性 HResult (繼承自 Exception。)
公用屬性 InnerException (繼承自 Exception。)
公用屬性 Message (繼承自 Exception。)
公用屬性 Source (繼承自 Exception。)
公用屬性 StackTrace (繼承自 Exception。)
公用屬性 TargetSite (繼承自 Exception。)

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetBaseException (繼承自 Exception。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetObjectData (繼承自 Exception。)
公用方法 GetType (繼承自 Exception。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 ToString (繼承自 Exception。)

上層

備註

您必須在 ASP.NET 網頁中啟用檢視狀態,ReportViewer 控制項才能正常運作。如需詳細資訊,請參閱 ASP.NET View State Overview

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.Reporting.WebForms 命名空間