Authorization.Message Property
Gets the message returned to the server in response to an authentication challenge.
Assembly: System (in System.dll)
Property Value
Type: System.StringThe message that will be returned to the server in response to an authentication challenge.
The Message property contains the authorization string that the client will return to the server when accessing protected resources. The actual contents of the message are defined by the authentication type the client and server are using. Basic HTTP authentication, for example, uses a different message than Kerberos authentication.
When an authentication module supports preauthentication, the Message property is sent with the initial request.
The following code example uses the Message property to get the message returned to the server in response to an authentication challenge. For a complete example, refer to the AuthenticationManager class.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.