PowerTCP FTP for .NET
TargetHost Property



Gets or sets the remote host to be authenticated.
Syntax
<DefaultValueAttribute("")>
Public Property TargetHost As String
Dim instance As ClientSecurity
Dim value As String
 
instance.TargetHost = value
 
value = instance.TargetHost
[DefaultValue("")]
public string TargetHost {get; set;}
[DefaultValue("")]
public:
property String^ TargetHost {
   String^ get();
   void set (    String^ value);
}
Remarks

Used internally as the first parameter for SslStream.AuthenticateAsClient(), it will typically match the common name of the server-side certificate. .NET also uses this value to maintain an internal cache of SSL sessions that can be re-used.

If left empty, the value of the configured RemoteEndPoint.HostNameOrAddress will be used for authentication when available.

See Also

Reference

ClientSecurity Class
ClientSecurity Members


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic