SslClientAuthenticationOptions.TargetHost Property
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 or sets the name of the server the client is trying to connect to. The name is used for server certificate validation and can be a DNS name or an IP address.
public:
property System::String ^ TargetHost { System::String ^ get(); void set(System::String ^ value); };
public string? TargetHost { get; set; }
public string TargetHost { get; set; }
member this.TargetHost : string with get, set
Public Property TargetHost As String
The name of the server the client is trying to connect to. If set to null
(.NET 7 and later versions only) or an empty string, the client doesn't send the host name in the Server Name Indication extension.
If the value is null
or an empty string, you should also provide a RemoteCertificateValidationCallback and validate the subject of the server's certificate.
Proizvod | Verzije |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: