共用方式為


LocalClientSecuritySettings.CacheCookies 屬性

定義

取得或設定值,這個值會指出是否已快取了安全對談的 Cookie。

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

屬性值

如果已快取了 Cookie,則為 true,否則為 false

範例

這個範例會說明如何設定要快取之安全對話的 Cookie。

LocalClientSecuritySettings settings =
    new LocalClientSecuritySettings();

bool cacheCookies = settings.CacheCookies;
Dim settings As New LocalClientSecuritySettings()

Dim cacheCookies As Boolean = settings.CacheCookies

適用於