Edit

Share via


SslStream.TargetHostName Property

Definition

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 : string
Public ReadOnly Property TargetHostName As String

Property Value

The name of the server the client is trying to connect to.

Applies to