3

我的 WebControl 像这样在 XAML 中定义

<aw:WebControl Source="http://google.com" Name="wpfWebControl"/>

我找到了这个,并尝试通过处理 WebSession 和视图来遵循它的说明,就像这样

        var webSession = this.wpfWebControl.WebSession;
        this.wpfWebControl.Dispose();
        webSession.Dispose();
        WebCore.Update();

然后尝试使用简单的方法删除存储缓存的目录

Directory.Delete(WEBSESSION_CACHE_PATH), true);

whereWEBSESSION_CACHE_PATH是存储缓存文件的目录。

我遇到 UnauthorizedAccessException,因此文件仍在使用中。不仅如此,如果我处理我的 WebControl,屏幕会变为空白,并使用

this.wpfWebControl = new WebControl()也不会工作。

我该怎么做?

4

1 回答 1

6

AWebSession.ClearCache已在v1.7.2中添加。

于 2013-09-23T13:18:51.507 回答