VB 2005中的多事件Args [英] Multiple event Args in VB 2005

查看:73
本文介绍了VB 2005中的多事件Args的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能告诉我它是否有可能在vb.net中做多个事件args?

Can anyone tell me if its possible to do multiple event args in vb.net?

推荐答案

是的你可以


如果你的意思是带有(n)元素的参数签名的事件


就像这样的例子


公共事件eHelloWorld(ByVal a As Date,ByVal b As String,ByVal c As

Integer,ByVal d As Object,ByVal e As System.EventArgs)

只是声明它有了想要的参数,这可以是价值类型或

参考类型

hth


Michel Posseth [MCP]


" cmdolcet69" < co ************ @ hotmail.comschreef in bericht

news:85 ****************** **************** @ d45g2000 hsc.googlegroups.com ...
Yes you can

if you mean with that a event with a argument signature of (n) elements

like this for instance

Public Event eHelloWorld(ByVal a As Date, ByVal b As String, ByVal c As
Integer, ByVal d As Object, ByVal e As System.EventArgs)
just declare it with the wanted arguments this can be value types or
reference types
hth

Michel Posseth [MCP]

"cmdolcet69" <co************@hotmail.comschreef in bericht
news:85**********************************@d45g2000 hsc.googlegroups.com...

谁能告诉我它是否可能在vb.net中做多个事件args?
Can anyone tell me if its possible to do multiple event args in vb.net?


是的,你尝试过什么不起作用?


那说,通常签名总是发送者和另一个论点

使用类型允许暴露任何成员所需要的所以我的

个人偏好可能会坚持这个约定为

一致性除非我找到一些强有力的理由否则。


IMO你的问题背后还有更多。您可能需要提供更多

详细信息...


-

Patrice

" cmdolcet69" < co ************ @hotmail.comaécritdansle message de groupe

de discussion:
85 ********* ************************* ... oglegroups.com ...
Yes, what have you tried that doesn''t work ?

That said, usually the signature is always the sender and another argument
using a class type that allows to expose whatever members are needed so my
personal preference would be likely to stick to this convention for
consistency unless I find some strong reason to do otherwise.

IMO there is more behind your question. You may want to provide a bit more
details...

--
Patrice

"cmdolcet69" <co************@hotmail.coma écrit dans le message de groupe
de discussion :
85**********************************...oglegroups.com...

任何人都可以告诉我它是否可以在vb.net中执行多个事件args?
Can anyone tell me if its possible to do multiple event args in vb.net?



" cmdolcet69" < co ************ @ hotmail.comschrieb
"cmdolcet69" <co************@hotmail.comschrieb

任何人都可以告诉我是否可以在
vb.net?
Can anyone tell me if its possible to do multiple event args in
vb.net?



是多事件参数我应该知道的一个词?如果没有,那是什么意思?

Armin

Is "multiple event args" a term I should know? If not, what''s it''s meaning?
Armin


这篇关于VB 2005中的多事件Args的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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