AppDomain.AppendPrivatePath Method (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

obsoleteCodeEntityP:System.AppDomainSetup.PrivateBinPath Note: This API is now obsolete.

Appends the specified directory name to the private path list.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

[ObsoleteAttribute("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead.")]
public void AppendPrivatePath(
	string path


Type: System.String

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

Exception Condition

The operation is attempted on an unloaded application domain.

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.


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

.NET Framework
Available since 1.1
Return to top