// ------------------------------------------------------------------------------
// <auto-generated>
// 這段程式碼是由工具產生的。
// 執行階段版本:4.0.30319.42000
// 
// 對這個檔案所做的變更可能會造成錯誤的行為，而且如果重新產生程式碼，
// 變更將會遺失。
// </auto-generated>
// ------------------------------------------------------------------------------


using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Serialization;
using Microsoft.VisualBasic.CompilerServices;

// 
// 原始程式碼已由 Microsoft.VSDesigner 自動產生，版本 4.0.30319.42000。
// 
namespace AutoLoaderLib_C.wsInvoke
{

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    [WebServiceBinding(Name = "wsInvokeSoap", Namespace = "http://www.imestech.com/wsInvoke")]
    [XmlInclude(typeof(object[]))]
    public partial class wsInvoke : SoapHttpClientProtocol
    {

        private System.Threading.SendOrPostCallback invokeSrvOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_XmlOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_Xml_SessionOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_DataTableParameterOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_DataTableOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_DataSetOperationCompleted;

        private System.Threading.SendOrPostCallback invokeSrv_SessionOperationCompleted;

        private System.Threading.SendOrPostCallback TestOperationCompleted;

        private bool useDefaultCredentialsSetExplicitly;

        /// <remarks/>
        public wsInvoke() : base()
        {
            Url = My.MySettings.Default.AutoLoaderLib_wsInvoke_wsInvoke;
            if (IsLocalFileSystemWebService(Url) == true)
            {
                UseDefaultCredentials = true;
                useDefaultCredentialsSetExplicitly = false;
            }
            else
            {
                useDefaultCredentialsSetExplicitly = true;
            }
        }

        public new string Url
        {
            get
            {
                return base.Url;
            }
            set
            {
                if (IsLocalFileSystemWebService(base.Url) == true && useDefaultCredentialsSetExplicitly == false && IsLocalFileSystemWebService(value) == false)

                {
                    base.UseDefaultCredentials = false;
                }
                base.Url = value;
            }
        }

        public new bool UseDefaultCredentials
        {
            get
            {
                return base.UseDefaultCredentials;
            }
            set
            {
                base.UseDefaultCredentials = value;
                useDefaultCredentialsSetExplicitly = true;
            }
        }

        /// <remarks/>
        public event invokeSrvCompletedEventHandler invokeSrvCompleted;

        /// <remarks/>
        public event invokeSrv_XmlCompletedEventHandler invokeSrv_XmlCompleted;

        /// <remarks/>
        public event invokeSrv_Xml_SessionCompletedEventHandler invokeSrv_Xml_SessionCompleted;

        /// <remarks/>
        public event invokeSrv_DataTableParameterCompletedEventHandler invokeSrv_DataTableParameterCompleted;

        /// <remarks/>
        public event invokeSrv_DataTableCompletedEventHandler invokeSrv_DataTableCompleted;

        /// <remarks/>
        public event invokeSrv_DataSetCompletedEventHandler invokeSrv_DataSetCompleted;

        /// <remarks/>
        public event invokeSrv_SessionCompletedEventHandler invokeSrv_SessionCompleted;

        /// <remarks/>
        public event TestCompletedEventHandler TestCompleted;

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv(string method, object[] parameters)
        {
            object[] results = Invoke("invokeSrv", new object[] { method, parameters });
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv(string method, object[] parameters, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv", new object[] { method, parameters }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return results[0];
        }

        /// <remarks/>
        public void invokeSrvAsync(string method, object[] parameters)
        {
            invokeSrvAsync(method, parameters, null);
        }

        /// <remarks/>
        public void invokeSrvAsync(string method, object[] parameters, object userState)
        {
            if (invokeSrvOperationCompleted == null)
            {
                invokeSrvOperationCompleted = OninvokeSrvOperationCompleted;
            }
            InvokeAsync("invokeSrv", new object[] { method, parameters }, invokeSrvOperationCompleted, userState);
        }

        private void OninvokeSrvOperationCompleted(object arg)
        {
            if (invokeSrvCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrvCompleted?.Invoke(this, new invokeSrvCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_Xml", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_Xml(string method, string inXMl)
        {
            object[] results = Invoke("invokeSrv_Xml", new object[] { method, inXMl });
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_Xml(string method, string inXMl, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_Xml", new object[] { method, inXMl }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_Xml(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_XmlAsync(string method, string inXMl)
        {
            invokeSrv_XmlAsync(method, inXMl, null);
        }

        /// <remarks/>
        public void invokeSrv_XmlAsync(string method, string inXMl, object userState)
        {
            if (invokeSrv_XmlOperationCompleted == null)
            {
                invokeSrv_XmlOperationCompleted = OninvokeSrv_XmlOperationCompleted;
            }
            InvokeAsync("invokeSrv_Xml", new object[] { method, inXMl }, invokeSrv_XmlOperationCompleted, userState);
        }

        private void OninvokeSrv_XmlOperationCompleted(object arg)
        {
            if (invokeSrv_XmlCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_XmlCompleted?.Invoke(this, new invokeSrv_XmlCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_Xml_Session", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_Xml_Session(string method, string inXMl)
        {
            object[] results = Invoke("invokeSrv_Xml_Session", new object[] { method, inXMl });
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_Xml_Session(string method, string inXMl, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_Xml_Session", new object[] { method, inXMl }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_Xml_Session(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_Xml_SessionAsync(string method, string inXMl)
        {
            invokeSrv_Xml_SessionAsync(method, inXMl, null);
        }

        /// <remarks/>
        public void invokeSrv_Xml_SessionAsync(string method, string inXMl, object userState)
        {
            if (invokeSrv_Xml_SessionOperationCompleted == null)
            {
                invokeSrv_Xml_SessionOperationCompleted = OninvokeSrv_Xml_SessionOperationCompleted;
            }
            InvokeAsync("invokeSrv_Xml_Session", new object[] { method, inXMl }, invokeSrv_Xml_SessionOperationCompleted, userState);
        }

        private void OninvokeSrv_Xml_SessionOperationCompleted(object arg)
        {
            if (invokeSrv_Xml_SessionCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_Xml_SessionCompleted?.Invoke(this, new invokeSrv_Xml_SessionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_DataTableParameter", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_DataTableParameter(string method, object[] parameters, ref DataTable pDataTable)
        {
            object[] results = Invoke("invokeSrv_DataTableParameter", new object[] { method, parameters, pDataTable });
            pDataTable = (DataTable)results[1];
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_DataTableParameter(string method, object[] parameters, DataTable pDataTable, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_DataTableParameter", new object[] { method, parameters, pDataTable }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_DataTableParameter(IAsyncResult asyncResult, ref DataTable pDataTable)
        {
            object[] results = EndInvoke(asyncResult);
            pDataTable = (DataTable)results[1];
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_DataTableParameterAsync(string method, object[] parameters, DataTable pDataTable)
        {
            invokeSrv_DataTableParameterAsync(method, parameters, pDataTable, null);
        }

        /// <remarks/>
        public void invokeSrv_DataTableParameterAsync(string method, object[] parameters, DataTable pDataTable, object userState)
        {
            if (invokeSrv_DataTableParameterOperationCompleted == null)
            {
                invokeSrv_DataTableParameterOperationCompleted = OninvokeSrv_DataTableParameterOperationCompleted;
            }
            InvokeAsync("invokeSrv_DataTableParameter", new object[] { method, parameters, pDataTable }, invokeSrv_DataTableParameterOperationCompleted, userState);
        }

        private void OninvokeSrv_DataTableParameterOperationCompleted(object arg)
        {
            if (invokeSrv_DataTableParameterCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_DataTableParameterCompleted?.Invoke(this, new invokeSrv_DataTableParameterCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_DataTable", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_DataTable(string method, string InXml, ref DataTable pDataTable)
        {
            object[] results = Invoke("invokeSrv_DataTable", new object[] { method, InXml, pDataTable });
            pDataTable = (DataTable)results[1];
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_DataTable(string method, string InXml, DataTable pDataTable, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_DataTable", new object[] { method, InXml, pDataTable }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_DataTable(IAsyncResult asyncResult, ref DataTable pDataTable)
        {
            object[] results = EndInvoke(asyncResult);
            pDataTable = (DataTable)results[1];
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_DataTableAsync(string method, string InXml, DataTable pDataTable)
        {
            invokeSrv_DataTableAsync(method, InXml, pDataTable, null);
        }

        /// <remarks/>
        public void invokeSrv_DataTableAsync(string method, string InXml, DataTable pDataTable, object userState)
        {
            if (invokeSrv_DataTableOperationCompleted == null)
            {
                invokeSrv_DataTableOperationCompleted = OninvokeSrv_DataTableOperationCompleted;
            }
            InvokeAsync("invokeSrv_DataTable", new object[] { method, InXml, pDataTable }, invokeSrv_DataTableOperationCompleted, userState);
        }

        private void OninvokeSrv_DataTableOperationCompleted(object arg)
        {
            if (invokeSrv_DataTableCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_DataTableCompleted?.Invoke(this, new invokeSrv_DataTableCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_DataSet", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_DataSet(string method, string InXml, ref DataSet pDataSet)
        {
            object[] results = Invoke("invokeSrv_DataSet", new object[] { method, InXml, pDataSet });
            pDataSet = (DataSet)results[1];
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_DataSet(string method, string InXml, DataSet pDataSet, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_DataSet", new object[] { method, InXml, pDataSet }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_DataSet(IAsyncResult asyncResult, ref DataSet pDataSet)
        {
            object[] results = EndInvoke(asyncResult);
            pDataSet = (DataSet)results[1];
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_DataSetAsync(string method, string InXml, DataSet pDataSet)
        {
            invokeSrv_DataSetAsync(method, InXml, pDataSet, null);
        }

        /// <remarks/>
        public void invokeSrv_DataSetAsync(string method, string InXml, DataSet pDataSet, object userState)
        {
            if (invokeSrv_DataSetOperationCompleted == null)
            {
                invokeSrv_DataSetOperationCompleted = OninvokeSrv_DataSetOperationCompleted;
            }
            InvokeAsync("invokeSrv_DataSet", new object[] { method, InXml, pDataSet }, invokeSrv_DataSetOperationCompleted, userState);
        }

        private void OninvokeSrv_DataSetOperationCompleted(object arg)
        {
            if (invokeSrv_DataSetCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_DataSetCompleted?.Invoke(this, new invokeSrv_DataSetCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/invokeSrv_Session", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public object invokeSrv_Session(string method, object[] parameters)
        {
            object[] results = Invoke("invokeSrv_Session", new object[] { method, parameters });
            return results[0];
        }

        /// <remarks/>
        public IAsyncResult BegininvokeSrv_Session(string method, object[] parameters, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("invokeSrv_Session", new object[] { method, parameters }, callback, asyncState);
        }

        /// <remarks/>
        public object EndinvokeSrv_Session(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return results[0];
        }

        /// <remarks/>
        public void invokeSrv_SessionAsync(string method, object[] parameters)
        {
            invokeSrv_SessionAsync(method, parameters, null);
        }

        /// <remarks/>
        public void invokeSrv_SessionAsync(string method, object[] parameters, object userState)
        {
            if (invokeSrv_SessionOperationCompleted == null)
            {
                invokeSrv_SessionOperationCompleted = OninvokeSrv_SessionOperationCompleted;
            }
            InvokeAsync("invokeSrv_Session", new object[] { method, parameters }, invokeSrv_SessionOperationCompleted, userState);
        }

        private void OninvokeSrv_SessionOperationCompleted(object arg)
        {
            if (invokeSrv_SessionCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                invokeSrv_SessionCompleted?.Invoke(this, new invokeSrv_SessionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        [SoapDocumentMethod("http://www.imestech.com/wsInvoke/Test", RequestNamespace = "http://www.imestech.com/wsInvoke", ResponseNamespace = "http://www.imestech.com/wsInvoke", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
        public string Test(string UserNo)
        {
            object[] results = Invoke("Test", new object[] { UserNo });
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public IAsyncResult BeginTest(string UserNo, AsyncCallback callback, object asyncState)
        {
            return BeginInvoke("Test", new object[] { UserNo }, callback, asyncState);
        }

        /// <remarks/>
        public string EndTest(IAsyncResult asyncResult)
        {
            object[] results = EndInvoke(asyncResult);
            return Conversions.ToString(results[0]);
        }

        /// <remarks/>
        public void TestAsync(string UserNo)
        {
            TestAsync(UserNo, null);
        }

        /// <remarks/>
        public void TestAsync(string UserNo, object userState)
        {
            if (TestOperationCompleted == null)
            {
                TestOperationCompleted = OnTestOperationCompleted;
            }
            InvokeAsync("Test", new object[] { UserNo }, TestOperationCompleted, userState);
        }

        private void OnTestOperationCompleted(object arg)
        {
            if (TestCompleted != null)
            {
                InvokeCompletedEventArgs invokeArgs = (InvokeCompletedEventArgs)arg;
                TestCompleted?.Invoke(this, new TestCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }

        /// <remarks/>
        public new void CancelAsync(object userState)
        {
            base.CancelAsync(userState);
        }

        private bool IsLocalFileSystemWebService(string url)
        {
            if (url == null || ReferenceEquals(url, string.Empty))
            {
                return false;
            }
            var wsUri = new Uri(url);
            if (wsUri.Port >= 1024 && string.Compare(wsUri.Host, "localHost", StringComparison.OrdinalIgnoreCase) == 0)
            {
                return true;
            }
            return false;
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrvCompletedEventHandler(object sender, invokeSrvCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrvCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrvCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_XmlCompletedEventHandler(object sender, invokeSrv_XmlCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_XmlCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_XmlCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_Xml_SessionCompletedEventHandler(object sender, invokeSrv_Xml_SessionCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_Xml_SessionCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_Xml_SessionCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_DataTableParameterCompletedEventHandler(object sender, invokeSrv_DataTableParameterCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_DataTableParameterCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_DataTableParameterCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }

        /// <remarks/>
        public DataTable pDataTable
        {
            get
            {
                RaiseExceptionIfNecessary();
                return (DataTable)results[1];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_DataTableCompletedEventHandler(object sender, invokeSrv_DataTableCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_DataTableCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_DataTableCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }

        /// <remarks/>
        public DataTable pDataTable
        {
            get
            {
                RaiseExceptionIfNecessary();
                return (DataTable)results[1];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_DataSetCompletedEventHandler(object sender, invokeSrv_DataSetCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_DataSetCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_DataSetCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }

        /// <remarks/>
        public DataSet pDataSet
        {
            get
            {
                RaiseExceptionIfNecessary();
                return (DataSet)results[1];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void invokeSrv_SessionCompletedEventHandler(object sender, invokeSrv_SessionCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class invokeSrv_SessionCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal invokeSrv_SessionCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public object Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return results[0];
            }
        }
    }

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    public delegate void TestCompletedEventHandler(object sender, TestCompletedEventArgs e);

    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCode("System.Web.Services", "4.8.3761.0")]
    [DebuggerStepThrough()]
    [DesignerCategory("code")]
    public partial class TestCompletedEventArgs : AsyncCompletedEventArgs
    {

        private object[] results;

        internal TestCompletedEventArgs(object[] results, Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState)
        {
            this.results = results;
        }

        /// <remarks/>
        public string Result
        {
            get
            {
                RaiseExceptionIfNecessary();
                return Conversions.ToString(results[0]);
            }
        }
    }
}