Api 建構函式

初始化 Api 類別的新實例。

命名空間IntervalZero.KINGSTAR.OpcUa.Api

組合: IntervalZero.KINGSTAR.OpcUa.Api (於 IntervalZero.KINGSTAR.OpcUa.Client.dll) 版本:4.4.0.0

語法

C#VB
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 及之後版本。

參見

Api 類別

IntervalZero.KINGSTAR.OpcUa.Api 命名空間