Api 建构函式
初始化 Api 类别的新实例。
命名空间:IntervalZero.KINGSTAR.OpcUa.Api
组合: IntervalZero.KINGSTAR.OpcUa.Api (于 IntervalZero.KINGSTAR.OpcUa.Client.dll) 版本:4.4.0.0
语法
public Api(
ushort defaultCertificateLifeTimeInMonths = 120,
ushort certificateRecreationThresholdInMonths = 60
)
Public Sub New(
defaultCertificateLifeTimeInMonths As UShort = 120,
certificateRecreationThresholdInMonths As UShort = 60
)
参数
defaultCertificateLifeTimeInMonths [非必要参数]
型别:ushort
预设值:120
为 KINGSTAR OPC UA 用户端自动生成的自签署凭证设定预设效期(单位:月)。更多资讯请参阅「凭证管理」。
注意:defaultCertificateLifeTimeInMonths 仅适用于 KINGSTAR 4.5 及之后版本。
certificateRecreationThresholdInMonths [非必要参数]
型别:ushort
预设值:60
指定一个期限(单位:月),建构函式将在设定的期限前触发凭证再生。更多资讯请参阅「凭证管理」。
注意:certificateRecreationThresholdInMonths 仅适用于 KINGSTAR 4.5 及之后版本。
参见