Compartir a través de


MailServer.UserName Propiedad

Gets or sets the user name associated with the referenced mail server.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Mail
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property UserName As String 
    Get 
    Set
'Uso
Dim instance As MailServer 
Dim value As String 

value = instance.UserName

instance.UserName = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string UserName { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ UserName {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member UserName : string with get, set
function get UserName () : String 
function set UserName (value : String)

Valor de la propiedad

Tipo: System.String
A String value that specifies the name of the user associated with the referenced mail server.

Ejemplos

Utilizar el correo electrónico de base de datos

Vea también

Referencia

MailServer Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo.Mail

Otros recursos

Correo electrónico de base de datos