System.Net.AuthenticationManager.Unregister Method

Removes the specified authentication module from the list of registered modules.

Syntax

public static void Unregister (IAuthenticationModule authenticationModule)

Parameters

authenticationModule
The System.Net.IAuthenticationModule to remove from the list of registered modules.

Exceptions

TypeReason
ArgumentNullException authenticationModule is null.
InvalidOperationException authenticationModule is not a registered authentication module.

Remarks

The AuthenticationManager.Unregister(IAuthenticationModule) method removes the specified authentication module from the list of authentication modules called by the AuthenticationManager.Authenticate(string, WebRequest, ICredentials) method. The module must have been added to the list using the AuthenticationManager.Register(IAuthenticationModule) method before it can be removed from the list.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0