Gets or sets the Service Provider Name (SPN) to use for authentication when using extended protection.
Documentation for this section has not yet been entered.
The SmtpClient.TargetName property is used with integrated Windows authentication when an application is using extended protection. The System.Net.Mail.SmtpClient can then provide extended protection to ensure that credential challenge responses contain service specific information (a SPN) and, if necessary, channel specific information (a channel binding token or CBT). With this information in the credential exchanges, services are able to better protect against malicious use of credential challenge responses that might have been improperly obtained.
The default value for this property can also be set in a machine or application configuration file. Any changes made to the SmtpClient.TargetName property override the configuration file settings.