AppDomain.SetCachePath(String) 方法

定義

警告

AppDomain.SetCachePath has been deprecated. Please investigate the use of AppDomainSetup.CachePath instead. https://go.microsoft.com/fwlink/?linkid=14202

警告

AppDomain.SetCachePath has been deprecated and is not supported.

警告

AppDomain.SetCachePath has been deprecated. Please investigate the use of AppDomainSetup.CachePath instead. http://go.microsoft.com/fwlink/?linkid=14202

將指定的目錄路徑建立為陰影複製組件的所在位置。

public:
 void SetCachePath(System::String ^ path);
public:
 virtual void SetCachePath(System::String ^ path);
[System.Obsolete("AppDomain.SetCachePath has been deprecated. Please investigate the use of AppDomainSetup.CachePath instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public void SetCachePath (string? path);
[System.Obsolete("AppDomain.SetCachePath has been deprecated and is not supported.")]
public void SetCachePath (string? path);
[System.Obsolete("AppDomain.SetCachePath has been deprecated. Please investigate the use of AppDomainSetup.CachePath instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public void SetCachePath (string path);
public void SetCachePath (string path);
[System.Obsolete("AppDomain.SetCachePath has been deprecated. Please investigate the use of AppDomainSetup.CachePath instead. http://go.microsoft.com/fwlink/?linkid=14202")]
[System.Security.SecurityCritical]
public void SetCachePath (string path);
[System.Obsolete("AppDomain.SetCachePath has been deprecated. Please investigate the use of AppDomainSetup.CachePath instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public void SetCachePath (string path);
[<System.Obsolete("AppDomain.SetCachePath has been deprecated. Please investigate the use of AppDomainSetup.CachePath instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.SetCachePath : string -> unit
[<System.Obsolete("AppDomain.SetCachePath has been deprecated and is not supported.")>]
member this.SetCachePath : string -> unit
[<System.Obsolete("AppDomain.SetCachePath has been deprecated. Please investigate the use of AppDomainSetup.CachePath instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.SetCachePath : string -> unit
abstract member SetCachePath : string -> unit
override this.SetCachePath : string -> unit
[<System.Obsolete("AppDomain.SetCachePath has been deprecated. Please investigate the use of AppDomainSetup.CachePath instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member SetCachePath : string -> unit
override this.SetCachePath : string -> unit
[<System.Obsolete("AppDomain.SetCachePath has been deprecated. Please investigate the use of AppDomainSetup.CachePath instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
[<System.Security.SecurityCritical>]
abstract member SetCachePath : string -> unit
override this.SetCachePath : string -> unit
Public Sub SetCachePath (path As String)

參數

path
String

陰影複本位置的完整路徑。

實作

屬性

例外狀況

嘗試對卸載的應用程式定義域執行作業。

備註

如果未設定 屬性, ApplicationName 則會忽略快取路徑。 請參閱 AppDomainSetup.CachePath 屬性。

如需陰影複製的詳細資訊,請參閱 陰影複製元件

適用於

另請參閱