ReportServerException.ErrorCode 屬性
從例外狀況中傳回錯誤碼。
命名空間: Microsoft.Reporting.WinForms
組件: Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)
語法
'宣告
Public ReadOnly Property ErrorCode As String
Get
'用途
Dim instance As ReportServerException
Dim value As String
value = instance.ErrorCode
public string ErrorCode { get; }
public:
property String^ ErrorCode {
String^ get ();
}
member ErrorCode : string
function get ErrorCode () : String
屬性值
型別:System.String
包含報表伺服器所傳回之錯誤碼的 String 值,如果與報表伺服器的連線嘗試不成功則為 nullnull 參考 (在 Visual Basic 中為 Nothing)。
備註
如需報表伺服器傳回的錯誤清單,請參閱《SQL Server 線上叢書》中的 SoapException Errors Table。