AppDomain.AppendPrivatePath(String) Metodo

Definizione

Avviso

Questa API è ora obsoleta.

Aggiunge il nome di directory specificato all'elenco di percorsi privati.Appends the specified directory name to the private path list.

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

Parametri

path
String

Nome della directory da aggiungere al percorso privato.The name of the directory to be appended to the private path.

Implementazioni

Attributi

Eccezioni

L'operazione viene tentata in un dominio dell'applicazione non caricato.The operation is attempted on an unloaded application domain.

Commenti

Non è consigliabile usare questa proprietà perché potrebbe modificare il percorso di sondaggio per gli assembly dopo che sono già stati caricati.The use of this property is not recommended, because it might change the probing path for assemblies after they have already been loaded. Utilizzare in alternativa la proprietà AppDomainSetup.PrivateBinPath.Use the AppDomainSetup.PrivateBinPath property instead.

Il percorso privato o il percorso di ricerca relativo è il percorso relativo alla directory di base in cui il resolver dell'assembly esegue il probe degli assembly privati.The private path, or relative search path, is the path relative to the base directory where the assembly resolver probes for private assemblies.

Si applica a