System.Net.AuthenticationManager.Unregister Method

Removes authentication modules with the specified authentication scheme from the list of registered modules.

Syntax

public static void Unregister (string authenticationScheme)

Parameters

authenticationScheme
The authentication scheme of the module to remove.

Exceptions

TypeReason
ArgumentNullException authenticationScheme is null.
InvalidOperationExceptionThere is no registered module with the authenticationScheme authentication type.

Remarks

The AuthenticationManager.Unregister(IAuthenticationModule) method removes the authentication module with the specified authentication scheme 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