次の方法で共有


WebSettings.SetDefaultWebProjectCacheDirectory Method

Definition

Resets the Web Project Cache Directory to the default

public:
 void SetDefaultWebProjectCacheDirectory();
public:
 void SetDefaultWebProjectCacheDirectory();
void SetDefaultWebProjectCacheDirectory();
[System.Runtime.InteropServices.DispId(4)]
public void SetDefaultWebProjectCacheDirectory ();
[<System.Runtime.InteropServices.DispId(4)>]
abstract member SetDefaultWebProjectCacheDirectory : unit -> unit
Public Sub SetDefaultWebProjectCacheDirectory ()
Attributes

Remarks

The SetDefaultWebProjectCacheDirectory property defines the directory for the offline cache. The offline cache is the location where files are stored when working with Web projects offline. When a project is taken offline, a subdirectory is created in the offline cache, according to a naming system described below.

Files from Web projects authored using file-share access are compiled and edited directly in the shared location. In contrast, files from Web projects authored using FrontPage access have http: file paths, so it is not possible to compile and edit them on the server location. For this reason, the files in such projects are compiled and edited in the offline location. Therefore, FrontPage-authored projects access the offline location during the authoring process, even when the project is online.

The project system creates the following directory structure:

\WebProjectCacheDirectory

\ServerName1

\ProjectName1

\ProjectName2

\ServerName2

\ProjectName3

As an example, suppose you create the following four Web projects:

The directory structure created will be as follows:

\WebProjectCacheDirectory

\ServerName1

\WebProject1

\SubProject1

\WebProject2

\www.microsoft.com

\WebProject3

Applies to