Gavin.Lv.

唯刀百辟 唯心不易

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2006年12月13日

摘要: .Net Framework中的许可证验证机制基于System.ComponentModel命名空间中的License、LicenseContext、LicenseException、LicenseManager、LicenseProvider和LicenseProviderAttribute六个类实现的。 License是一个抽象类,用于代表许可证主体; LicenseContext中保存了许可证的上下文,其中UsageMode属性可以用来获取当前是运行时(runtime)还是设计模式(designtime); LicenseException是许可证相关的异常,当许可证信息不可用时,在调用LicenseProvider(或其派生类)实例的GetLicense方法时将抛出此类型的异常; LicenseManager是一个密封(sealed)类,LicenseManager提供了多个静态(static)方法用于验证许可证、获取许可证等操作; LicenseProviderAttribute属性用于指定某一个类所采用的许可证提供程序(Lice 阅读全文
posted @ 2006-12-13 16:39 Gavin.Lv. 阅读(7222) 评论(2) 推荐(1)