共用方式為


<assemblyBinding>配置元素<>

在配置層級規定組裝綁定政策。

<組態>
   <assemblyBinding>

語法

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  <!-- Configuration files to include. -->
</assemblyBinding>

Attribute

Description
xmlns 必要屬性。

指定組合語言綁定所需的 XML 命名空間。 使用字串「urn:schemas-microsoft-com:asm.v1」作為值。

父元素

Description
<組態> 通用語言執行平台和 .NET Framework 應用程式所使用之每個組態檔中的根項目。

子專案

Description
<連結配置> 指定要包含的設定檔。

備註

<linkedConfiguration> 元素簡化了元件組件的管理,允許應用程式設定檔在已知位置包含組裝組設定檔,而不必重複組裝組設定設定。

備註

<linkedConfiguration>此元素不支援具有 Windows 並排清單的應用程式。

Example

以下範例說明如何在本地硬碟中包含設定檔:

<configuration>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <linkedConfiguration href="file://c:\Program Files\Contoso\sharedConfig.xml" />
  </assemblyBinding>
</configuration>

另請參閱