AppDomain.AppendPrivatePath(String) AppDomain.AppendPrivatePath(String) AppDomain.AppendPrivatePath(String) AppDomain.AppendPrivatePath(String) Method

Definition

Warning

This API is now obsolete.

Appends the specified directory name to the private path list.

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

Parameters

path
String String String String

The name of the directory to be appended to the private path.

Implements

Exceptions

Remarks

The use of this property is not recommended, because it might change the probing path for assemblies after they have already been loaded. Use the AppDomainSetup.PrivateBinPath property instead.

The private path, or relative search path, is the path relative to the base directory where the assembly resolver probes for private assemblies.

Security

SecurityCriticalAttribute
Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Applies to