AppDomainSetup.CachePath AppDomainSetup.CachePath AppDomainSetup.CachePath AppDomainSetup.CachePath Property

定义

获取或设置特定于应用程序且从中对文件进行卷影复制的区域的名称。Gets or sets the name of an area specific to the application where files are shadow copied.

public:
 property System::String ^ CachePath { System::String ^ get(); void set(System::String ^ value); };
public string CachePath { get; set; }
member this.CachePath : string with get, set
Public Property CachePath As String

属性值

从中对文件进行卷影复制的目录路径和文件名的完全限定名。The fully qualified name of the directory path and file name where files are shadow copied.

实现

注解

为了使此属性生效, ApplicationName还必须设置属性。In order for this property to have an effect, the ApplicationName property must also be set. 如果未ApplicationName设置该属性CachePath ,则将忽略属性,并将卷影副本缓存位置默认为下载缓存。If the ApplicationName property is not set, the CachePath property is ignored and the shadow copy cache location defaults to the download cache.

有关卷影复制的详细信息,请参阅卷影复制程序集For more information on shadow copying, see Shadow Copying Assemblies.

安全性

FileIOPermission
用于访问路径信息。for access to the path information. 关联的枚举:PathDiscoveryAssociated enumeration: PathDiscovery

适用于

另请参阅