LocalClientSecuritySettings.SessionKeyRolloverInterval 屬性

定義

取得或設定前一個工作階段金鑰在金鑰更新期間對傳入訊息屬有效的時間間隔。

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

屬性值

TimeSpan,表示前一個工作階段金鑰在金鑰更新之後對傳入訊息屬有效的時間間隔。 預設值是 5 分鐘。

例外狀況

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

範例

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

TimeSpan rollover = settings.SessionKeyRolloverInterval;
Dim rollover As TimeSpan = settings.SessionKeyRolloverInterval

備註

在金鑰更新之後,用戶端和伺服器都必須使用最新的可用金鑰來傳送訊息。 雙方都會接受由前一個工作階段金鑰保護的傳入訊息,直到變換時間逾期。

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

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

適用於