AppDomain.RelativeSearchPath 属性

定义

获取基目录下的路径,在此程序集冲突解决程序应探测专用程序集。Gets the path under the base directory where the assembly resolver should probe for private assemblies.

public:
 property System::String ^ RelativeSearchPath { System::String ^ get(); };
public string RelativeSearchPath { get; }
member this.RelativeSearchPath : string
Public ReadOnly Property RelativeSearchPath As String

属性值

基目录下的路径,在此程序集冲突解决程序应探测专用程序集。The path under the base directory where the assembly resolver should probe for private assemblies.

实现

异常

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

注解

私有程序集部署在与应用程序相同的目录结构中。Private assemblies are deployed in the same directory structure as the application. 如果 RelativeSearchPath 属性指定的路径不在 AppDomainSetup.ApplicationBase下,将忽略它。If the path specified by the RelativeSearchPath property is not under AppDomainSetup.ApplicationBase, it is ignored.

此属性返回使用 AppDomainSetup.PrivateBinPath设置的值。This property returns the value set using AppDomainSetup.PrivateBinPath.

安全性

FileIOPermission
用于访问路径信息。for access to the path information. 关联的枚举:PathDiscoveryAssociated enumeration: PathDiscovery.

适用于

另请参阅