Lire en anglais

Partager via


AppDomain.SetCachePath(String) Méthode

Définition

Attention

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

Attention

AppDomain.SetCachePath has been deprecated and is not supported.

Attention

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

Définit le chemin d'accès du répertoire spécifié comme emplacement pour les clichés instantanés des assemblys.

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

Paramètres

path
String

Chemin d’accès qualifié complet à l’emplacement des clichés instantanés.

Implémente

Attributs

Exceptions

L’opération est tentée sur un domaine d’application non chargé.

Remarques

Le chemin du cache est ignoré si la ApplicationName propriété n’est pas définie. Voir la propriété AppDomainSetup.CachePath.

Pour plus d’informations sur le cliché instantané, consultez Assemblys de cliché instantané.

S’applique à

Produit Versions (Obsolète)
.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)

Voir aussi