Прочитать на английском

Поделиться через


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

Устанавливает заданный путь каталога в качестве места, куда копируются теневые сборки.

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);

Параметры

path
String

Полный путь к расположению теневых копий.

Реализации

Атрибуты

Исключения

Предпринята попытка выполнения операции с выгруженным доменом приложения.

Комментарии

Путь к кэшу игнорируется, ApplicationName если свойство не задано. См. описание свойства AppDomainSetup.CachePath.

Дополнительные сведения о теневом копировании см. в разделе Теневого копирования сборок.

Применяется к

Продукт Версии (Устарело)
.NET (Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9)
.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, 4.8.1)
.NET Standard (2.0, 2.1)

См. также раздел