AppDomain.SetCachePath(String) Metoda

Definicja

Przestroga

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

Przestroga

AppDomain.SetCachePath has been deprecated and is not supported.

Przestroga

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

Przestroga

Use AppDomainSetup.SetCachePath

Określa określoną ścieżkę katalogu jako lokalizację, w której zestawy są kopiowane w tle.

C#
[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);
C#
[System.Obsolete("AppDomain.SetCachePath has been deprecated and is not supported.")]
public void SetCachePath (string? path);
C#
[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);
C#
public void SetCachePath (string path);
C#
[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);
C#
[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);
C#
[System.Obsolete("Use AppDomainSetup.SetCachePath")]
public void SetCachePath (string path);

Parametry

path
String

W pełni kwalifikowana ścieżka do lokalizacji kopiowania w tle.

Implementuje

Atrybuty

Wyjątki

Próba wykonania operacji w niezaładowanej domenie aplikacji.

Uwagi

Ścieżka pamięci podręcznej jest ignorowana, jeśli właściwość nie jest ustawiona ApplicationName . AppDomainSetup.CachePath Zobacz właściwość .

Aby uzyskać więcej informacji na temat kopiowania w tle, zobacz Zestawy kopiowania w tle.

Dotyczy

Produkt Wersje (Przestarzałe)
.NET (Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8)
.NET Standard (2.0, 2.1)

Zobacz też