SmtpNetworkElement.TargetName Propriedade
Definição
Obtém ou define o SPN (nome do provedor de serviço) a ser usado para autenticação ao utilizar a proteção estendida para se conectar a um servidor de email SMTP.Gets or sets the Service Provider Name (SPN) to use for authentication when using extended protection to connect to an SMTP mail server.
public:
property System::String ^ TargetName { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("targetName")]
public string TargetName { get; set; }
[System.Configuration.ConfigurationProperty("targetName", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public string TargetName { get; set; }
[<System.Configuration.ConfigurationProperty("targetName")>]
member this.TargetName : string with get, set
[<System.Configuration.ConfigurationProperty("targetName", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.TargetName : string with get, set
Public Property TargetName As String
Valor da propriedade
Uma cadeia de caracteres que representa o SPN a ser usado para autenticação ao usar a proteção estendida para se conectar a um servidor de email SMTP.A string that represents the SPN to use for authentication when using extended protection to connect to an SMTP mail server.
- Atributos
Comentários
A TargetName propriedade permite que um aplicativo obtenha ou defina o SPN a ser usado para autenticação quando a autenticação integrada do Windows com proteção estendida.The TargetName property allows an application to get or set the SPN to use for authentication when integrated Windows authentication with extended protection. Se a TargetName propriedade não for definida, o valor padrão para esse SPN será no formato "SmtpSvc/ <host> ", em que <host> é o nome do host do servidor de email SMTP.If the TargetName property is not set, the default value for this SPN is of the form "SMTPSVC/<host>" where <host> is the hostname of the SMTP mail server.
O valor padrão para esse elemento de rede no arquivo de configuração SMTP também pode ser alterado editando manualmente os arquivos de configuração do computador ou do aplicativo diretamente.The default value for this network element in the SMTP configuration file can also be changed by manually editing the machine or application configuration files directly.
Aplica-se a
Confira também
- SmtpSection
- SmtpClient
- TargetName
- Esquema de configurações de redeNetwork Settings Schema
- <>elemento MailSettings (configurações de rede)<mailSettings> Element (Network Settings)
- <>elemento SMTP (configurações de rede)<smtp> Element (Network Settings)
- <>elemento de rede (configurações de rede)<network> Element (Network Settings)