AppDomain.ClearShadowCopyPath 方法

定义

警告

此 API 现已过时。

将包含影像复制的程序集的目录列表重置为空字符串 ("")。Resets the list of directories containing shadow copied assemblies to the empty string ("").

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

实现

属性

异常

在卸载的应用程序域上尝试该操作。The operation is attempted on an unloaded application domain.

注解

卷影副本路径是存储卷影复制的程序集的目录的列表。The shadow copy path is a list of directories where shadow copied assemblies are stored.

有关详细信息,请参阅 AppDomainSetup.ShadowCopyDirectories卷影复制程序集For more information, see AppDomainSetup.ShadowCopyDirectories and Shadow Copying Assemblies.

安全性

SecurityCriticalAttribute
需要对直接调用方的完全信任。Requires full trust for the immediate caller. 部分受信任的或透明的代码不能使用此成员。This member cannot be used by partially trusted or transparent code.

适用于

另请参阅