引用参数 meaning in English
referendce parameters
Examples
- There is slight additional overhead in referencing a parameter by name rather than index value , but this can be offset by ease of programming and by application maintainability
通过名称而不是索引值来引用参数存在少许附加系统开销,但这可通过编程方便和应用程序的可维护性抵消。 - If the delegate uses reference parameters , the reference is passed sequentially to each of the three methods in turn , and any changes by one method are visible to the next method
如果委托使用引用参数,则引用将依次传递给三个方法中的每个方法,由一个方法引起的更改对下一个方法是可见的。 - Working with members that define out or reference parameters requires that the developer understand pointers , subtle differences between value types and reference types , and initialization differences between out and reference parameters
使用定义输出参数或引用参数的成员需要开发人员理解指针、值类型和引用类型之间的细微差别以及输出参数和引用参数之间的初始化差异。 - An out parameter is similar to a reference parameter except that out parameters are used exclusively for returning data to the caller , while reference parameters can be used to pass data into the method as well as receive data from the method
输出参数与引用参数类似,不同之处在于,输出参数以独占方式用于向调用方返回数据,而引用参数可用于将数据传入方法,也可用于从方法中接收数据。 - Using a parameter name is generally a much better programming practice than referencing parameters by index value , because it reduces the need for maintenance if the number of parameters changes and frees you from having to remember whether a stored procedure returns a value
. oledbdataadapter1 . selectcommand . parameters [ " title _ keyword " ] . value = titlekeyword ;编程时使用参数名通常比通过索引值引用参数好得多,因为它减少了在参数个数变化时的维护需要,并使您不必记忆存储过程是否返回值。