AuthenticationManager.Unregister Method (IAuthenticationModule)

 

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

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

static member Unregister : 
        authenticationModule:IAuthenticationModule -> unit

Parameters

authenticationModule
Type: System.Net.IAuthenticationModule

The IAuthenticationModule to remove from the list of registered modules.

Exception Condition
ArgumentNullException

authenticationModule is null.

InvalidOperationException

The specified IAuthenticationModule is not registered.

The Unregister method removes the specified authentication module from the list of authentication modules called by the Authenticate method. The module must have been added to the list using the Register method before it can be removed from the list.

The following example uses the Unregister method to remove the specified authentication module from the list of registered modules. 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: