AppDomain.SetCachePath(String) Methode

Definition

Warnung

Diese API ist jetzt veraltet.

Legt den angegebenen Verzeichnispfad als Speicherort für gespiegelte Assemblys fest.Establishes the specified directory path as the location where assemblies are shadow copied.

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. http://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")]
[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")]
public void SetCachePath (string path);
public void SetCachePath (string path);
[System.Security.SecurityCritical]
[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);
[System.Obsolete("Use AppDomainSetup.SetCachePath")]
public void SetCachePath (string path);
member this.SetCachePath : string -> unit
abstract member SetCachePath : string -> unit
override this.SetCachePath : string -> unit
Public Sub SetCachePath (path As String)

Parameter

path
String

Der vollqualifizierte Pfad des Speicherortes der Schattenkopie.The fully qualified path to the shadow copy location.

Implementiert

Attribute

Ausnahmen

Der Vorgang wird für eine entladene Anwendungsdomäne ausgeführt.The operation is attempted on an unloaded application domain.

Hinweise

Der Cache Pfad wird ignoriert, wenn die ApplicationName-Eigenschaft nicht festgelegt ist.The cache path is ignored if the ApplicationName property is not set. Weitere Informationen finden Sie unter der AppDomainSetup.CachePath-Eigenschaft.See the AppDomainSetup.CachePath property.

Weitere Informationen zu Schatten Kopien finden Sie unter schattenkopieassemblys.For more information on shadow copying see Shadow Copying Assemblies.

Gilt für:

Siehe auch