WebSettings.WebProjectCacheDirectory 属性

定义

获取或设置项目文件的脱机位置。

public:
 property System::String ^ WebProjectCacheDirectory { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ WebProjectCacheDirectory { Platform::String ^ get(); void set(Platform::String ^ value); };
[System.Runtime.InteropServices.DispId(3)]
public string WebProjectCacheDirectory { [System.Runtime.InteropServices.DispId(3)] get; [System.Runtime.InteropServices.DispId(3)] set; }
[<System.Runtime.InteropServices.DispId(3)>]
[<get: System.Runtime.InteropServices.DispId(3)>]
[<set: System.Runtime.InteropServices.DispId(3)>]
member this.WebProjectCacheDirectory : string with get, set
Public Property WebProjectCacheDirectory As String

属性值

String

指定默认 Web 缓存目录的字符串。

属性

注解

WebProjectCacheDirectory属性指向脱机缓存的根目录,即当使用 Web 项目脱机时存储文件的位置。 当某个项目脱机时,将根据下述命名系统在脱机缓存中创建子目录。

使用文件共享访问创作的 Web 项目中的文件直接在共享位置进行编译和编辑。 与之相比,使用 FrontPage access 创作的 Web 项目中的文件具有 http: file 路径,因此无法在服务器位置上对其进行编译和编辑。 出于此原因,此类项目中的文件将在脱机位置进行编译和编辑。 因此,在创作过程中,FrontPage 创作的项目将访问脱机位置,即使项目处于联机状态也是如此。

项目系统将创建以下目录结构:

\WebProjectCacheDirectory

\ServerName1

\ProjectName1

\ProjectName2

\ServerName2

\ProjectName3

例如,假设你创建了以下四个 Web 项目:

创建的目录结构如下所示:

\WebProjectCacheDirectory

\ServerName1

\WebProject1

\SubProject1

\WebProject2

\ www.microsoft.com

\WebProject3

适用于