• System.Web.Services.WebMethodAttribute.cs


    ylbtech-System.Web.Services.WebMethodAttribute.cs
    1.程序集 System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a返回顶部
    1、
    #region 程序集 System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    // C:Program Files (x86)Reference AssembliesMicrosoftFramework.NETFrameworkv4.0System.Web.Services.dll
    #endregion
    
    using System.EnterpriseServices;
    
    namespace System.Web.Services
    {
        //
        // 摘要:
        //     向使用 ASP.NET 创建的 XML Web services 中的某个方法添加此特性后,就可以从远程 Web 客户端调用该方法。无法继承此类。
        [AttributeUsage(AttributeTargets.Method)]
        public sealed class WebMethodAttribute : Attribute
        {
            //
            // 摘要:
            //     Initializes a new instance of the System.Web.Services.WebMethodAttribute class.
            public WebMethodAttribute();
            //
            // 摘要:
            //     Initializes a new instance of the System.Web.Services.WebMethodAttribute class.
            //
            // 参数:
            //   enableSession:
            //     初始化是否为 XML Web services 方法启用会话状态。
            public WebMethodAttribute(bool enableSession);
            //
            // 摘要:
            //     初始化 System.Web.Services.WebMethodAttribute 类的新实例。
            //
            // 参数:
            //   enableSession:
            //     初始化是否为 XML Web services 方法启用会话状态。
            //
            //   transactionOption:
            //     初始化 XML Web services 方法的事务支持。
            public WebMethodAttribute(bool enableSession, TransactionOption transactionOption);
            //
            // 摘要:
            //     Initializes a new instance of the System.Web.Services.WebMethodAttribute class.
            //
            // 参数:
            //   enableSession:
            //     初始化是否为 XML Web services 方法启用会话状态。
            //
            //   transactionOption:
            //     初始化 XML Web services 方法的事务支持。
            //
            //   cacheDuration:
            //     初始化响应的缓存秒数。
            public WebMethodAttribute(bool enableSession, TransactionOption transactionOption, int cacheDuration);
            //
            // 摘要:
            //     Initializes a new instance of the System.Web.Services.WebMethodAttribute class.
            //
            // 参数:
            //   enableSession:
            //     初始化是否为 XML Web services 方法启用会话状态。
            //
            //   transactionOption:
            //     初始化 XML Web services 方法的事务支持。
            //
            //   cacheDuration:
            //     初始化响应的缓存秒数。
            //
            //   bufferResponse:
            //     初始化是否缓存该请求的响应。
            public WebMethodAttribute(bool enableSession, TransactionOption transactionOption, int cacheDuration, bool bufferResponse);
    
            //
            // 摘要:
            //     描述 XML Web services 方法的描述性消息。
            //
            // 返回结果:
            //     描述 XML Web services 方法的描述性消息。默认值为 System.String.Empty。
            public string Description { get; set; }
            //
            // 摘要:
            //     指示是否为 XML Web services 方法启用会话状态。
            //
            // 返回结果:
            //     如果为 XML Web services 方法启用会话状态,则为 true。默认为 false。
            public bool EnableSession { get; set; }
            //
            // 摘要:
            //     获取或设置响应应在缓存中保留的秒数。
            //
            // 返回结果:
            //     响应应在缓存中保留的秒数。默认值为 0,表示不缓存响应。
            public int CacheDuration { get; set; }
            //
            // 摘要:
            //     获取或设置是否缓存该请求的响应。
            //
            // 返回结果:
            //     如果缓存该请求的响应,则为 true;否则为 false。默认为 true。
            public bool BufferResponse { get; set; }
            //
            // 摘要:
            //     指示 XML Web services 方法的事务支持。
            //
            // 返回结果:
            //     XML Web services 方法的事务支持。默认为 System.EnterpriseServices.TransactionOption.Disabled。
            public TransactionOption TransactionOption { get; set; }
            //
            // 摘要:
            //     在传递到 XML Web services 方法和从 XML Web services 方法返回的数据中用于 XML Web services 方法的名称。
            //
            // 返回结果:
            //     在传递到 XML Web services 方法和从 XML Web services 方法返回的数据中用于 XML Web services 方法的名称。默认值是
            //     XML Web services 方法的名称。
            public string MessageName { get; set; }
        }
    }
    2、
    2.返回顶部
     
    3.返回顶部
     
    4.返回顶部
     
    5.返回顶部
     
     
    6.返回顶部
     
    warn 作者:ylbtech
    出处:http://ylbtech.cnblogs.com/
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
  • 相关阅读:
    @loj
    @hdu
    @hdu
    转:sql之left join、right join、inner join的区别
    MySQL客户端Workbench
    转:js中this关键字详解
    转:jQuery弹出二级菜单
    转:ASP.NET 使用Ajax
    Python类的特点 (3) :静态方法与类方法
    Python类的特点 (2) :类属性与实例属性的关系
  • 原文地址:https://www.cnblogs.com/storebook/p/9192190.html
Copyright © 2020-2023  润新知