要将参数字符串传递给Invoke方法,可以使用以下方式:

  1. 直接将参数字符串作为一个字符串对象传递:
object[] results = this.Invoke("Program_Download_ADD", new object[] {
    "item_number", "workstation", "product_model", "specific_name", "worktable" });
  1. 如果参数字符串是变量,可以将变量的值传递给Invoke方法:
string item_number = "item_number";
string workstation = "workstation";
string product_model = "product_model";
string specific_name = "specific_name";
string worktable = "worktable";

object[] results = this.Invoke("Program_Download_ADD", new object[] {
    item_number, workstation, product_model, specific_name, worktable });

请根据实际情况选择适合的方式传递参数字符串

object results = thisInvokeProgram_Download_ADD new object item_numberworkstationproduct_modelspecific_nameworktable ;参数字符串怎么传过去

原文地址: http://www.cveoy.top/t/topic/iDcu 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录