<authenticationModules> 要素
インターネット要求を認証するために使用するモジュールを指定します。
<configuration>
<system.net>
<authenticationModules>
<authenticationModules>
</authenticationModules>
子要素
要素 | 説明 |
---|---|
<add> | 認証モジュールをアプリケーションに追加します。 |
<clear> | すべての認証モジュールを削除します。 |
<remove> | 認証モジュールをアプリケーションから削除します。 |
解説
<authenticationModules> 要素は、サーバーとの間の認証プロセスを実行する認証モジュールを指定します。認証モジュールは、IAuthenticationModule インターフェイスを実装する必要があります。
例
カスタム認証モジュールを構成する例を次に示します。
<configuration>
<system.net>
<authenticationModules>
<add type="MyAuthModule.dll, MyAuthModule" />
</authenticationModules>
</system.net>
</configuration>
構成ファイル
この要素は、アプリケーション構成ファイル、マシン構成ファイル (Machine.config)、および発行者ポリシー ファイルで使用できます。
参照
IAuthenticationModule インターフェイス | AuthenticationManager クラス | ネットワーク設定スキーマ