AppDomainSetup.CachePath 屬性

定義

取得和設定其中的檔案已陰影複製的應用程式特定區域的名稱。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

屬性值

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.

適用於

另請參閱