"景先生毕设|www.jxszl.com

C# CallbackAsyncComplete类代码示例

2023-12-29 17:39编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中CallbackAsyncComplete类的典型用法代码示例。如果您正苦于以下问题:C#CallbackAsyncComplete类的具体用法?C#CallbackAsyncComplete怎么用?C#CallbackAsyncComplete使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:BeginGetPosition /// ///Invoketheactionasynchronously /// ///Returnsimmediatelyandwillruntheclient-specifiedcallbackwhentheaction ///latercompletes.Anyoutputargumentscanthenberetrievedbycalling ///EndGetPosition(). /// ///Delegatetorunwhentheactioncompletes. ///Thisisguaranteedtoberunbutmayindicateanerror publicvoidBeginGetPosition(uintaIndex,CallbackAsyncCompleteaCallback) { Invocationinvocation=iService.Invocation(iActionGetPosition,aCallback); intinIndex=0; invocation.AddInput(newArgumentUint((ParameterUint)iActionGetPosition.InputParameter(inIndex++),aIndex)); intoutIndex=0; invocation.AddOutput(newArgumentUint((ParameterUint)iActionGetPosition.OutputParameter(outIndex++))); invocation.AddOutput(newArgumentUint((ParameterUint)iActionGetPosition.OutputParameter(outIndex++))); invocation.AddOutput(newArgumentUint((ParameterUint)iActionGetPosition.OutputParameter(outIndex++))); iService.InvokeAction(invocation); }
原文链接:http://www.jxszl.com/biancheng/C/556645.html