System.Net.AuthenticationManager.Register Method

Registers an authentication module with the authentication manager.

Syntax

public static void Register (IAuthenticationModule authenticationModule)

Parameters

authenticationModule
The System.Net.IAuthenticationModule to register with the authentication manager.

Exceptions

TypeReason
ArgumentNullException authenticationModule is null.

Remarks

The AuthenticationManager.Register(IAuthenticationModule) method adds authentication modules to the end of the list of modules called by the AuthenticationManager.Authenticate(string, WebRequest, ICredentials) method. Authentication modules are called in the order in which they were added to the list. If a module with the same IAuthenticationModule.AuthenticationType is already registered, this method removes the registered module and adds authenticationModule to the end of 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