未实现该方法或操作.

编程入门 行业动态 更新时间:2024-10-26 11:23:19
本文介绍了未实现该方法或操作.-如何清除此错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Public Sub loadlabe1() Dim sql_Sel As String Dim hIssId As Integer = 0 ' hIssId = Request.QueryString("patID") Try Dim Tbl As DataTable Dim doc As New ReportDocument() Dim DM As New DataManager sql_Sel = "exec MPI_Select @Reg_No=1 " Tbl = DataManager.ExecuteScalarDS(sql_Sel, Me.SqlCon, "MPI_Select") doc.Load(Server.MapPath("CrystalReport1.rpt")) doc.SetDataSource(Tbl) crypt.ReportSource = doc 'Catch ex As Exception ' labelmsg.Text = ex.ToString() 'FutureFeature() Catch NotImp As NotImplementedException Console.WriteLine(NotImp.Message) End Try End Sub End Class

我是什么尝试过: Public Sub loadlabe1() Dim sql_Sel As String Dim hIssId因为整数= 0 'hIssId = Request.QueryString(patID) 尝试 Dim Tbl As DataTable Dim doc As New ReportDocument() Dim DM As New DataManager sql_Sel =exec MPI_Select @Reg_No = 1 Tbl = DataManager.ExecuteScalarDS(sql_Sel,Me.SqlCon,MPI_Select) doc.Load(Server.MapPath(CrystalReport1.rpt)) doc.SetDataSource(Tbl ) crypt.ReportSource = doc 'Catch ex As Exception 'labelmsg.Text = ex.ToString() 'FutureFeature() Catch NotImp为NotImplementedException Console.WriteLine(NotImp.Message) 结束尝试 结束次级 结束类

What I have tried: Public Sub loadlabe1() Dim sql_Sel As String Dim hIssId As Integer = 0 ' hIssId = Request.QueryString("patID") Try Dim Tbl As DataTable Dim doc As New ReportDocument() Dim DM As New DataManager sql_Sel = "exec MPI_Select @Reg_No=1 " Tbl = DataManager.ExecuteScalarDS(sql_Sel, Me.SqlCon, "MPI_Select") doc.Load(Server.MapPath("CrystalReport1.rpt")) doc.SetDataSource(Tbl) crypt.ReportSource = doc 'Catch ex As Exception ' labelmsg.Text = ex.ToString() 'FutureFeature() Catch NotImp As NotImplementedException Console.WriteLine(NotImp.Message) End Try End Sub End Class

推荐答案

当控件进入已声明但尚未完全实现的方法时,抛出NotImplementedException。请在下面找到MSDN中的示例代码示例: - "NotImplementedException" is thrown when the control goes into a method that has been declared but has not been implemented completely. Please find below the sample code example from MSDN :- Sub Main() Try FutureFeature() Catch NotImp As NotImplementedException Console.WriteLine(NotImp.Message) End Try End Sub Sub FutureFeature() ' not developed yet. Throw New NotImplementedException() End Sub

在上面的例子中,FutureFeature方法方法还没有被imp完全删失并且语句Throw New NotImplementedException抛出了代码的catch块中捕获的异常。请逐行调试代码(使用F11)以了解抛出异常的确切方法。请访问msdn.microsoft/en-us/library/system.notimplementedexception(v=vs.110).aspx 了解更多详情

In the above example FutureFeature method method has not been implemented completely and the statement "Throw New NotImplementedException" throws the exception which is being caught in the catch block of your code. Please debug the code line by line (with F11) to know the exact method throwing the exception. Please visit msdn.microsoft/en-us/library/system.notimplementedexception(v=vs.110).aspx for more details

更多推荐

未实现该方法或操作.

本文发布于:2023-11-14 19:08:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1588283.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:操作   方法

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!