Export (0) Print
Expand All

Authorization.Message Property

Gets the message returned to the server in response to an authentication challenge.

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

member Message : string with get

Property Value

Type: System.String
The 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.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft