AppDomain.SetShadowCopyPath Method (String)

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

Establishes the specified directory path as the location of assemblies to be shadow copied.

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

[<SecurityCriticalAttribute>]
[<ObsoleteAttribute("AppDomain.SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract SetShadowCopyPath : 
        path:string -> unit
[<SecurityCriticalAttribute>]
[<ObsoleteAttribute("AppDomain.SetShadowCopyPath has been deprecated. Please investigate the use of AppDomainSetup.ShadowCopyDirectories instead. http://go.microsoft.com/fwlink/?linkid=14202")>]
override SetShadowCopyPath : 
        path:string -> unit

Parameters

path
Type: System.String

A list of directory names, where each name is separated by a semicolon.

Exception Condition
AppDomainUnloadedException

The operation is attempted on an unloaded application domain.

By default, a shadow copy includes all assemblies found through probing. The SetShadowCopyPath method restricts the shadow copy to the assemblies in the directories specified by path.

The SetShadowCopyPath method does not specify additional directories to be searched for assemblies. Assemblies to be shadow-copied must already be located in the search path, for example under BaseDirectory. The SetShadowCopyPath method specifies which search paths are eligible to be shadow-copied.

This method sets the ShadowCopyDirectories property of the internal AppDomainSetup associated with this instance.

For more information on shadow copying, see Shadow Copying Assemblies.

This method is now obsolete, and should not be used for new development.

No code example is currently available or this language may not be supported.

SecurityCriticalAttribute

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
Show: