点击或拖拽改变大小

AuthorizationSetAuthorizationCode 方法 (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.

命名空间:  HslCommunication
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public static bool SetAuthorizationCode(
	string ip,
	int port,
	string token = null
)

参数

ip
类型:SystemString
远程的IP地址信息
port
类型:SystemInt32
远程的端口号信息
token (Optional)
类型:SystemString
令牌信息,不是必须的,具体取决于服务器作用

返回值

类型:Boolean
是否激活成功
参见