运行方法
语法
[WebInvokeAttribute BodyStyle = 2,
方法=“职位”,
RequestFormat = 1,
ResponseFormat = 1)
[OperationContractAttribute (Name =“运行”,
Action =“运行”,
AsyncPattern =假,
IsOneWay =假,
IsInitiating =真正的,
IsTerminating =假)]
公共无效运行(
字符串id,
intfirstPageNumber,
intlastPageNumber,
字符串commandName,
字符串参数,
对象用户数据
)
< WebInvokeAttribute (BodyStyle: = 2,
方法:=“职位”,
RequestFormat: = 1,
ResponseFormat: = 1),
OperationContractAttribute(名字:=“运行”,
行动:=“运行”,
AsyncPattern: =假,
IsOneWay: =假,
IsInitiating: =真正的,
IsTerminating: =假) >
公共子运行(
按值传递id作为字符串,
按值传递firstPageNumber作为整数,
按值传递lastPageNumber作为整数,
按值传递commandName作为字符串,
按值传递参数作为字符串,
按值传递用户数据作为对象
)
公共:
[WebInvokeAttribute BodyStyle = 2,
方法= L“职位”,
RequestFormat = 1,
ResponseFormat = 1)
[OperationContractAttribute (Name = L“运行”,
Action = L“运行”,
AsyncPattern =假,
IsOneWay =假,
IsInitiating =真正的,
IsTerminating =假)]
无效运行(
字符串^id,
Int32firstPageNumber,
Int32lastPageNumber,
字符串^commandName,
字符串^参数,
对象^用户数据
)
参数
lastPageNumber
要处理的最后一页。传递-1以处理页,包括从firstPageNumber到最后一页。