过程的最大参数数 [英] Maximum number of parameters for a procedure
本文介绍了过程的最大参数数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我有一个关于传递给程序的最大参数数量的问题。
>
在VB 6中,最大值为60.
Dot Net的最大值是多少?
请和谢谢。
Leroy
Hello,
I have a question regarding the maximum number of parameters that can be
passed to a procedure.
In VB 6 the max was 60.
What is the max for Dot Net?
please and thanks.
Leroy
推荐答案
据我所知,没有最大值。
>
但是,如果你甚至接近将60个参数传递给方法,
它可能是重新考虑你的应用程序设计的时候了。
>
" Leroy" < leroy_lemon@eat_my_shorts_hotmail.com>在消息中写道
新闻:Ow ************** @ TK2MSFTNGP12.phx.gbl ...
There is no maximum as far as I know.
However, if you are getting even close to passing 60 arguments to a method,
it''s probably time to rethink the design of your app.
"Leroy" <leroy_lemon@eat_my_shorts_hotmail.com> wrote in message
news:Ow**************@TK2MSFTNGP12.phx.gbl...
你好,>
我有一个关于可以传递给程序的最大参数数量的问题。
在VB 6中,最大值为60.
> Dot Net的最大值是多少?
请和谢谢。
Leroy
Hello,
I have a question regarding the maximum number of parameters that can be
passed to a procedure.
In VB 6 the max was 60.
What is the max for Dot Net?
please and thanks.
Leroy
Leroy ,
我不知道程序的实际最大参数数是多少,
或者是否有任何可达到的参数限制。
但是!肯定有一个人应该观察到的逻辑最大值!!
我发现有一些(3或4)参数我认真地认为是b
考虑使用参数对象!
http:// www .refactoring.com / catalog / i ... terObject.html
引入参数对象的好处是,有些可能是
你的第一堂课的行为可以转移到参数类。
当然,有ParamArray参数的方法可以有5个或更多
参数传递...
希望这有帮助
Jay
" Leroy" < leroy_lemon@eat_my_shorts_hotmail.com>在消息中写道
新闻:Ow ************** @ TK2MSFTNGP12.phx.gbl ...
|您好,
|
|我有一个关于最大参数数量的问题,可以是
|通过了一个程序。
|
|在VB 6中,最大值为60.
|
| Dot Net的最大值是多少?
|
|拜托,谢谢。
|
| Leroy
|
|
Leroy,
I don''t know what the actual maximum number of parameters to a procedure is,
or if there is any "attainable" limit.
However! surely there is a logical maximum that one should observe!!
I find with more then a handful (3 or 4) of parameters that I seriously
consider using a Parameter Object!
http://www.refactoring.com/catalog/i...terObject.html
A benefit of introducing a parameter object, is the chance that some of the
behavior from your first class can be moved to the parameter class.
Of course methods that have ParamArray parameters can have 5 or more
parameters passed...
Hope this helps
Jay
"Leroy" <leroy_lemon@eat_my_shorts_hotmail.com> wrote in message
news:Ow**************@TK2MSFTNGP12.phx.gbl...
| Hello,
|
| I have a question regarding the maximum number of parameters that can be
| passed to a procedure.
|
| In VB 6 the max was 60.
|
| What is the max for Dot Net?
|
| please and thanks.
|
| Leroy
|
|
谢谢Marina。
程序是我的dba的创造,而且当它重新设计的建议时,他有点温和。
我正在将应用程序转换为来自vb 6的dot net和列表中的这个是
,但是当前的生产副本已被修改为超过
60参数且尚未转换。我正在努力确定是否应该将b
用于转换,或者做一些工作。
Leroy
>
" Marina" <所以***** @ nospam.com>在消息中写道
news:uV ************** @ TK2MSFTNGP10.phx.gbl ...
Thanks Marina.
The procedure is a creation of my dba and he''s a little tempermental when it
comes to suggestions such as redesign.
I''m in the process of converting apps to dot net from vb 6 and this one is
on the list, but the current production copy has been modified to more than
60 parameters and hasn''t been converted. I''m trying to determine if I should
expidite the conversion, or do some sort of work around.
Leroy
"Marina" <so*****@nospam.com> wrote in message
news:uV**************@TK2MSFTNGP10.phx.gbl...
没有最大值据我所知。
但是,如果你接近将60个参数传递给
方法,那么现在可能是重新考虑应用程序设计的时候了。
LERoy" < leroy_lemon@eat_my_shorts_hotmail.com>在消息中写道
新闻:Ow ************** @ TK2MSFTNGP12.phx.gbl ...
There is no maximum as far as I know.
However, if you are getting even close to passing 60 arguments to a
method, it''s probably time to rethink the design of your app.
"Leroy" <leroy_lemon@eat_my_shorts_hotmail.com> wrote in message
news:Ow**************@TK2MSFTNGP12.phx.gbl...
你好,
>我有一个关于可以传递给程序的最大参数数量的问题。
在VB 6中,最大值为60.
什么是Dot Net的最大值?
请和谢谢。
Leroy
Hello,
I have a question regarding the maximum number of parameters that can be
passed to a procedure.
In VB 6 the max was 60.
What is the max for Dot Net?
please and thanks.
Leroy
这篇关于过程的最大参数数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文