<probing> 元素

更新:2007 年 11 月

指定加载程序集时公共语言运行库要搜索的应用程序基子目录。

<configuration> 元素
  <runtime> 元素
    <runtime> -> <assemblyBinding> 元素
      <probing> 元素

<probing privatePath="paths"/>

属性和元素

以下几节描述了属性、子元素和父元素。

属性

属性

说明

privatePath

必选的属性。

指定可能包含程序集的应用程序基目录的子目录。用分号分隔每个子目录。

子元素

无。

父元素

元素

说明

assemblyBinding

包含有关程序集版本重定向和程序集位置的信息。

configuration

公共语言运行库和 .NET Framework 应用程序所使用的每个配置文件中的根元素。

runtime

包含有关程序集绑定和垃圾回收的信息。

示例

下面的示例说明如何指定运行库应在其中搜索程序集的应用程序基子目录。

<configuration>
   <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
         <probing privatePath="bin;bin2\subbin;bin3"/>
      </assemblyBinding>
   </runtime>
</configuration>

请参见

概念

指定程序集的位置

运行库如何定位程序集

参考

运行库设置架构

其他资源

.NET Framework 的配置文件架构