Opc.Ua.SessionEndpoint.EndQueryNext C# (CSharp) Method

EndQueryNext() public method

Waits for an asynchronous call to the QueryNext service to complete.
public EndQueryNext ( IAsyncResult ar ) : QueryNextResponseMessage
ar IAsyncResult
return QueryNextResponseMessage
        public virtual QueryNextResponseMessage EndQueryNext(IAsyncResult ar)
        {
            try
            {
                IServiceResponse response = ProcessRequestAsyncResult.WaitForComplete(ar, true);
                OnResponseSent(response);
                return new QueryNextResponseMessage((QueryNextResponse)response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(ProcessRequestAsyncResult.GetRequest(ar), e);
                OnResponseFaultSent(fault);
                throw fault;
            }
        }
        #endif
SessionEndpoint