Export (0) Print
Expand All

AppDomain.AppendPrivatePath Method

NOTE: This method is now obsolete. The non-obsolete alternative is PrivateBinPath.

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. http://go.microsoft.com/fwlink/?linkid=14202")] 
public void AppendPrivatePath (
	string path
)
/** @attribute ObsoleteAttribute("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. http://go.microsoft.com/fwlink/?linkid=14202") */ 
public final void AppendPrivatePath (
	String path
)
ObsoleteAttribute("AppDomain.AppendPrivatePath has been deprecated. Please investigate the use of AppDomainSetup.PrivateBinPath instead. http://go.microsoft.com/fwlink/?linkid=14202") 
public final function AppendPrivatePath (
	path : String
)
Not applicable.

Parameters

path

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

Exception typeCondition

AppDomainUnloadedException

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.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 1.0, 1.1, 2.0
Obsolete (compiler warning) in 3.0

Community Additions

ADD
Show:
© 2014 Microsoft