c#语法求教,该怎么处理
c#语法求教
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using BucConsole.Cep;
using System.IO;
using System.ServiceModel;
using UFIDA.U8.IF.MDMS.Tracking;
using System.Data;
using System.Data.Common;
using System.Configuration;
public IList<IntegrationFlowInstance> LoadAllInstances()
{
IntegrationFlowQueryOptions ops = new IntegrationFlowQueryOptions();
//查询的内容,比如单据号。如果不设置这个选项,就表示不加内容过滤条件
ops.LikeWhat = "Save";
//查询分页的页号
ops.PageIndex = 1;
//查询分页的页大小
ops.PageSize = 100;
//查询的状态,如果不设置这个选项,就查询所有状态
ops.IntegrationFlowStatus = IntegrationFlowStatus.Terminated;
//查询并将结果保存到集合中
IList<IntegrationFlowInstance> l = query.GetIntegrationFlows(ops);
Return l;
}
这个方法报错如下:
1)找不到类型或命名空间名称”return“(是否缺少using指令或程序集引用)
2)已在此范围定义了名为“l”的局部变量
求指教
------解决方案--------------------
恭喜lz
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using BucConsole.Cep;
using System.IO;
using System.ServiceModel;
using UFIDA.U8.IF.MDMS.Tracking;
using System.Data;
using System.Data.Common;
using System.Configuration;
public IList<IntegrationFlowInstance> LoadAllInstances()
{
IntegrationFlowQueryOptions ops = new IntegrationFlowQueryOptions();
//查询的内容,比如单据号。如果不设置这个选项,就表示不加内容过滤条件
ops.LikeWhat = "Save";
//查询分页的页号
ops.PageIndex = 1;
//查询分页的页大小
ops.PageSize = 100;
//查询的状态,如果不设置这个选项,就查询所有状态
ops.IntegrationFlowStatus = IntegrationFlowStatus.Terminated;
//查询并将结果保存到集合中
IList<IntegrationFlowInstance> l = query.GetIntegrationFlows(ops);
Return l;
}
这个方法报错如下:
1)找不到类型或命名空间名称”return“(是否缺少using指令或程序集引用)
2)已在此范围定义了名为“l”的局部变量
求指教
------解决方案--------------------
恭喜lz