LocalClientSecuritySettings.SessionKeyRenewalInterval 屬性

定義

取得或設定啟動器會在這段時間之後為安全性工作階段更新金鑰的時間範圍。

public:
 property TimeSpan SessionKeyRenewalInterval { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan SessionKeyRenewalInterval { get; set; }
member this.SessionKeyRenewalInterval : TimeSpan with get, set
Public Property SessionKeyRenewalInterval As TimeSpan

屬性值

TimeSpan,表示啟動器會在這段時間之後為安全性工作階段更新金鑰的時間範圍。 預設為 10 小時。

例外狀況

這個屬性設定為小於 0 的值。set

範例

這個範例會說明如何取得這個屬性。

TimeSpan sessionKeyRenewalInterval = settings.SessionKeyRenewalInterval;
Dim sessionKeyRenewalInterval As TimeSpan = settings.SessionKeyRenewalInterval

備註

工作階段設定 (例如這個設定) 適用於下列任何一種狀況:

工作階段設定 (例如這個設定) 不適用於下列任何一種狀況:

適用於