共用方式為


<remove> Element for authenticationModules(網路設定)

移除應用程式中的認證模組。

<組態>
   <system.net>
     <認證模組>
       <除>

語法

<remove
   type="authentication module name"
/>

屬性和項目

下列章節說明屬性、子元素和父元素。

Attributes

Attribute 說明
type 要移除的認證模組名稱。

子元素

沒有。

父項目

元素 說明
認證模組 規範用於驗證網路請求的模組。

備註

remove 元素移除先前在組態檔案中或設定階層中較高層定義的認證模組。

屬性的值 type 應該是有效的類別名稱。

組態檔

此元素可用於應用程式設定檔或機器設定檔(Machine.config)。

Example

以下範例移除了一個認證模組。

<configuration>
  <system.net>
    <authenticationModules>
      <remove type="System.Net.NtlmClient" />
    </authenticationModules>
  </system.net>
</configuration>

另請參閱