Ler em inglês

Partilhar via


AppDomain.SetCachePath(String) Método

Definição

Cuidado

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

Cuidado

AppDomain.SetCachePath has been deprecated and is not supported.

Cuidado

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

Cuidado

Use AppDomainSetup.SetCachePath

Estabelece o caminho de diretório especificado como o local em que é feita cópia de sombra dos assemblies.

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

Parâmetros

path
String

O caminho totalmente qualificado para o local da cópia de sombra.

Implementações

Atributos

Exceções

A operação é tentada em um domínio de aplicativo descarregado.

Comentários

O caminho do cache será ignorado se a ApplicationName propriedade não estiver definida. Consulte a propriedade AppDomainSetup.CachePath.

Para obter mais informações sobre cópia de sombra, consulte Assemblies de Cópia de Sombra.

Aplica-se a

Produto Versões (Obsoleto)
.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)

Confira também