SslStream.TargetHostName Property    
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the name of the server the client is trying to connect to. That name is used for server certificate validation. It can be a DNS name or an IP address.
public:
 property System::String ^ TargetHostName { System::String ^ get(); };public string TargetHostName { get; }member this.TargetHostName : stringPublic ReadOnly Property TargetHostName As StringProperty Value
The name of the server the client is trying to connect to.