PowerTCP Mail 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* get_TargetHost();
public: __property void set_TargetHost( 
   string* value
);
[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 Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic