AuthenticatedStream.IsServer Property

 

Gets a Boolean value that indicates whether the local side of the connection was authenticated as the server.

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

abstract IsServer : bool with get

Property Value

Type: System.Boolean

true if the local endpoint was authenticated as the server side of a client-server authenticated connection; false if the local endpoint was authenticated as the client.

Most security protocols used for client-server authentication define specific behavior and requirements for supplying credentials for authentication based on whether you are the client or the server.

The following code example demonstrates displaying the value of this property.

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

.NET Framework
Available since 2.0
Return to top
Show: