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

适用于