System.Net.IAuthenticationModule.PreAuthenticate Method

Returns an instance of the System.Net.Authorization class for an authentication request to a server.

Syntax

public Authorization PreAuthenticate (WebRequest request, ICredentials credentials)

Parameters

request
The System.Net.WebRequest instance associated with the authentication request.
credentials
The credentials associated with the authentication request.

Returns

An System.Net.Authorization instance containing the authorization message for the request.

Remarks

When the IAuthenticationModule.CanPreAuthenticate property is true, the IAuthenticationModule.PreAuthenticate(WebRequest, ICredentials) method will return an instance of the System.Net.Authorization class containing an authentication message.

Requirements

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