Bagikan melalui


LocalClientSecuritySettings.CacheCookies Properti

Definisi

Mendapatkan atau menetapkan nilai yang menunjukkan apakah cookie percakapan aman di-cache.

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

Nilai Properti

true jika cookie di-cache; jika tidak, false.

Contoh

Contoh ini menunjukkan cara mengatur cookie percakapan aman untuk di-cache.

LocalClientSecuritySettings settings =
    new LocalClientSecuritySettings();

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

Dim cacheCookies As Boolean = settings.CacheCookies

Berlaku untuk