点击或拖拽改变大小

Authorization 类

系统的基本授权类
继承层次
SystemObject
  HslCommunicationAuthorization

命名空间:  HslCommunication
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public class Authorization

Authorization 类型公开以下成员。

构造函数
  名称说明
公共方法Authorization
初始化 Authorization 类的一个新实例
Top
方法
  名称说明
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Object。)
公共方法GetType (继承自 Object。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法静态成员SetAuthorizationCode(String)
设置本组件系统的授权信息,如果激活失败,只能使用24小时,24小时后所有的网络通信不会成功
Set the authorization information of this component system. If the activation fails, it can only be used for 8 hours. All network communication will not succeed after 8 hours
公共方法静态成员SetAuthorizationCode(String, Int32, String)
通过指定的IP地址,端口号信息的接口服务器获取密钥,然后进行激活,适用局域网内一个主服务对其他电脑的激活操作。如果网络失败或是密钥不正确,则激活失败。
The interface server obtains the key through the specified IP address and port number information, and then activates it, which applies to the activation operation of one main service in the LAN to other computers. If the network fails or the key is incorrect, activation fails.
公共方法静态成员SetDllContact
设置本组件激活失败的情况时候的联系方式,可以设置成自定义的字符串,当且仅当企业用户激活成功后调用本方法有效,如果不设置默认为:联系QQ200962190,微信:13516702732,Email:hsl200909@163.com
Set the contact information when the activation of this component fails, can be set to a custom string, if and only if the enterprise user activation is successful to call this method is valid, if not set the default is: contact QQ200962190, WeChat: 13516702732,Email:hsl200909@163.com
公共方法静态成员SetHslCertificate
使用证书激活hslcommunication组件,证书请联系胡工科技获取,如果获取的是文件的话,那就是 SetHslCertificate( File.ReadAllBytes( "hsl.cert" ) ) 获取原始字节信息
Use the certificate to activate the hslcommunication component, please contact Hugong Technology to obtain the certificate, if the obtained is a file, that is, SetHslCertificate( File.ReadAllBytes( "hsl.cert") ) to obtain the raw byte information
公共方法ToString (继承自 Object。)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见