在公共子新的太多争论 [英] Too Many Argument in Public sub new

查看:60
本文介绍了在公共子新的太多争论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好



我收到以下错误:

Public sub new中的参数太多

这是我的代码;错误在粗线

Hello

I am getting the following error:
Too Many Argument in Public sub new
Here is my code; the error is in the bold line

Private Sub OperationButtonset_btnAddClick(sender As Object, e As EventArgs) Handles OperationButtonSet.btnAddClick
        Try
            _entities = New RFDBEntities
            Using SC6Reports = New SC6Reports(_entities, OperationEnum.Add, 0, _Resultid)

推荐答案

Take看一下SC6Reports的构造函数。您传递到 New 的参数必须与那里的预期相符。由于我们没有在我们面前的代码,我们无法确切地告诉您哪个参数导致了问题。
Take a look at the constructor for SC6Reports. The arguments you pass into your New here have to match what's expected there. As we don't have that code in front of us, we can't tell you exactly which parameter is causing the problem.


这篇关于在公共子新的太多争论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆