摘要:
好几天没上了,接(二)继续:1遇到的问题:如何设置方法参数为可选(vb.net中)?解决方法:使用optional关键字之后,在调用时,可以不输入那些可选参数,例如:Public Function ExecuteDataset(ByVal strSql As String, ByVal strTableName As String, Optional ByVal SqlParas() As SqlClient.SqlParameter = Nothing, Optional ByVal CmdType As CommandType = Nothing) As DataSet……End Func 阅读全文