reference.cs

来自「利用本文档提供的源代码」· CS 代码 · 共 63 行

CS
63
字号
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.2032
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

// 
// 此源代码是由 Microsoft.VSDesigner 1.1.4322.2032 版自动生成。
// 
namespace OTATextBuilder.UltraBinarySMS {
    using System.Diagnostics;
    using System.Xml.Serialization;
    using System;
    using System.Web.Services.Protocols;
    using System.ComponentModel;
    using System.Web.Services;
    
    
    /// <remarks/>
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="SendSMSSoap", Namespace="http://webservices.ultrapower.com.cn/sms/2005/09/")]
    public class SendSMS : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        /// <remarks/>
        public SendSMS() {
            string urlSetting = System.Configuration.ConfigurationSettings.AppSettings["OTATextBuilder.UltraBinarySMS.SendSMS"];
            if ((urlSetting != null)) {
                this.Url = string.Concat(urlSetting, "");
            }
            else {
                this.Url = "http://219.238.168.183/SendBinarySMS/sendsms.asmx";
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://webservices.ultrapower.com.cn/sms/2005/09/send", RequestNamespace="http://webservices.ultrapower.com.cn/sms/2005/09/", ResponseNamespace="http://webservices.ultrapower.com.cn/sms/2005/09/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string send(string content, string destmobile) {
            object[] results = this.Invoke("send", new object[] {
                        content,
                        destmobile});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult Beginsend(string content, string destmobile, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("send", new object[] {
                        content,
                        destmobile}, callback, asyncState);
        }
        
        /// <remarks/>
        public string Endsend(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((string)(results[0]));
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?