<探查 > 元素<probing> Element

指定載入元件時,common language runtime 要搜尋的應用程式基底子目錄。Specifies application base subdirectories for the common language runtime to search when loading assemblies.

<configuration> <configuration>
    <runtime >   <runtime>
        <assemblyBinding >     <assemblyBinding>
       <探查 >      <probing>

語法Syntax

<probing privatePath="paths"/>  

屬性和項目Attributes and Elements

下列各節描述屬性、子項目和父項目。The following sections describe attributes, child elements, and parent elements.

屬性Attributes

屬性Attribute 描述Description
privatePath 必要屬性。Required attribute.

指定可能包含元件之應用程式基底目錄的子目錄。Specifies subdirectories of the application's base directory that might contain assemblies. 以分號分隔每個子目錄。Delimit each subdirectory with a semicolon.

子項目Child Elements

無。None.

父項目Parent Elements

項目Element 描述Description
assemblyBinding 包含有關組件版本重新導向和組件位置的資訊。Contains information about assembly version redirection and the locations of assemblies.
configuration 通用語言執行平台和 .NET Framework 應用程式所使用之每個組態檔中的根項目。The root element in every configuration file used by the common language runtime and .NET Framework applications.
runtime 包含有關組件繫結和記憶體回收的資訊。Contains information about assembly binding and garbage collection.

範例Example

下列範例顯示如何指定執行時間應該搜尋元件的應用程式基底子目錄。The following example shows how to specify application base subdirectories the runtime should search for assemblies.

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

請參閱See also