authenticationModules 的 <remove> 元素 (網路設定)

從應用程式移除驗證模組。

<configuration>
  <system.net>
    <authenticationModules>
      <remove>

Syntax

<remove
   type="authentication module name"
/>  

屬性和項目

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

屬性

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

子元素

無。

父項目

Element 說明
authenticationModules 指定用來驗證網路要求的模組。

備註

remove 元素會移除先前在設定檔或設定階層中較高層級定義的驗證模組。

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

組態檔

此項目可以用於應用程式組態檔或電腦組態檔 (Machine.config)。

範例

以下範例會移除驗證模組。

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

另請參閱