请解释(ByVal o As Object,ByVal e As CommandEventArgs)的含义 [英] please explain the meaning of (ByVal o As Object, ByVal e As CommandEventArgs)

查看:184
本文介绍了请解释(ByVal o As Object,ByVal e As CommandEventArgs)的含义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(ByVal o As Object,ByVal e As CommandEventArgs)

(ByVal o As Object, ByVal e As CommandEventArgs)

推荐答案

我不擅长解释,但我会尝试..(所以其他的CP出来了如果我错了,请纠正我。)



[ByVal o as Object] - 我通常在函数中使用它。示例..

I'm not good at explaining but I'll try.. (so other CPians out there, correct me if I'm wrong.)

[ByVal o as Object] -- I usually use this in a function. Example..
Public function sum (ByVal Num1 as integer, num2 as integer) as integer
sum = Num1 + Num2
return sum
end function



[ByVal e as CommandEventArgs] - 我通常使用这个使用AddHandler(或EventHandler)复制事件。



ByVal(表示ByValue)返回确切的值。

ByRef(表示ByReference) )返回变量指向的数据存储中的值。



当您从Designer视图中双击对象时,您可以将该短语视为默认值。而且默认情况下,它总是ByVal。


[ByVal e as CommandEventArgs] -- I usually use this to replicate an event by using AddHandler (or EventHandler).

ByVal (means ByValue) returns the exact value.
ByRef (means ByReference) returns the value from the data storage where the variable points at.

You can see that phrase as a default when you double click an object from the Designer view. And also by default, it is always ByVal.


结帐:



点击这里



希望它有所帮助:)
check out:

Click here

Hope it helps :)


这篇关于请解释(ByVal o As Object,ByVal e As CommandEventArgs)的含义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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