SslStream.TargetHostName 属性
定义
获取客户端正在尝试连接到的服务器的名称。Gets the name of the server the client is trying to connect to. 该名称用于服务器证书验证。That name is used for server certificate validation. 它可以是 DNS 名称,也可以是 IP 地址。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
属性值
客户端正在尝试连接到的服务器的名称。The name of the server the client is trying to connect to.