AuthenticationManager.Register Method (IAuthenticationModule)

 

Registers an authentication module with the authentication manager.

Namespace:   System.Net
Assembly:  System (in System.dll)

static member Register : 
        authenticationModule:IAuthenticationModule -> unit

Parameters

authenticationModule
Type: System.Net.IAuthenticationModule

The IAuthenticationModule to register with the authentication manager.

Exception Condition
ArgumentNullException

authenticationModule is null.

The Register method adds authentication modules to the end of the list of modules called by the Authenticate method. Authentication modules are called in the order in which they were added to the list. If a module with the same AuthenticationType is already registered, this method removes the registered module and adds authenticationModule to the end of the list.

The following example registers an authentication module with the authentication manager. For a complete example, refer to the AuthenticationManager class.

No code example is currently available or this language may not be supported.

SecurityPermission

for executing unmanaged code. Associated enumeration: SecurityPermissionFlag.

.NET Framework
Available since 1.1
Return to top
Show: