Freigeben über


AppDomain.SetShadowCopyPath(String) Methode

Definition

Achtung

AppDomain.SetShadowCopyPath has been deprecated and is not supported.

Achtung

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

Achtung

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

Legt den angegebenen Verzeichnispfad als Speicherort der Assemblys fest, die schatten kopiert werden sollen.

public:
 void SetShadowCopyPath(System::String ^ path);
public:
 virtual void SetShadowCopyPath(System::String ^ path);
[System.Obsolete("AppDomain.SetShadowCopyPath has been deprecated and is not supported.")]
public void SetShadowCopyPath(string? path);
[System.Obsolete("AppDomain.SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public void SetShadowCopyPath(string? path);
[System.Obsolete("AppDomain.SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. http://go.microsoft.com/fwlink/?linkid=14202")]
public void SetShadowCopyPath(string path);
public void SetShadowCopyPath(string path);
[System.Obsolete("AppDomain.SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. http://go.microsoft.com/fwlink/?linkid=14202")]
[System.Security.SecurityCritical]
public void SetShadowCopyPath(string path);
[System.Obsolete("AppDomain.SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. https://go.microsoft.com/fwlink/?linkid=14202")]
public void SetShadowCopyPath(string path);
[<System.Obsolete("AppDomain.SetShadowCopyPath has been deprecated and is not supported.")>]
member this.SetShadowCopyPath : string -> unit
[<System.Obsolete("AppDomain.SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. https://go.microsoft.com/fwlink/?linkid=14202")>]
member this.SetShadowCopyPath : string -> unit
[<System.Obsolete("AppDomain.SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
member this.SetShadowCopyPath : string -> unit
abstract member SetShadowCopyPath : string -> unit
override this.SetShadowCopyPath : string -> unit
[<System.Obsolete("AppDomain.SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member SetShadowCopyPath : string -> unit
override this.SetShadowCopyPath : string -> unit
[<System.Obsolete("AppDomain.SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
[<System.Security.SecurityCritical>]
abstract member SetShadowCopyPath : string -> unit
override this.SetShadowCopyPath : string -> unit
Public Sub SetShadowCopyPath (path As String)

Parameter

path
String

Eine Liste der Verzeichnisnamen, wobei jeder Name durch ein Semikolon getrennt ist.

Implementiert

Attribute

Ausnahmen

Der Vorgang wird in einer nicht geladenen Anwendungsdomäne versucht.

Hinweise

Standardmäßig enthält eine Schattenkopie alle Assemblys, die durch Diesuchung gefunden werden. Die SetShadowCopyPath Methode schränkt die Schattenkopie auf die Assemblys in den durch .path

Die SetShadowCopyPath Methode gibt keine zusätzlichen Verzeichnisse an, die nach Assemblys durchsucht werden sollen. Assemblys, die schattenkopiert werden sollen, müssen sich bereits im Suchpfad befinden, z. B. unter BaseDirectory. Die SetShadowCopyPath Methode gibt an, welche Suchpfade zur Schattenkopie berechtigt sind.

Mit dieser Methode wird die ShadowCopyDirectories Eigenschaft des internen AppDomainSetup Objekts festgelegt, das dieser Instanz zugeordnet ist.

Weitere Informationen zum Kopieren von Schatten finden Sie unter "Assemblys zum Kopieren von Schatten".

Gilt für:

Weitere Informationen