Dela via


SMTPConn.SmtpServer Property

Gets or sets the name used to connect to the SMTP server.

Namespace:  Microsoft.SqlServer.Dts.ManagedConnections
Assembly:  Microsoft.SqlServer.ManagedConnections (in Microsoft.SqlServer.ManagedConnections.dll)

Syntax

'Declaration
Public Property SmtpServer As String
    Get
    Set
'Usage
Dim instance As SMTPConn
Dim value As String

value = instance.SmtpServer

instance.SmtpServer = value
public string SmtpServer { get; set; }
public:
property String^ SmtpServer {
    String^ get ();
    void set (String^ value);
}
member SmtpServer : string with get, set
function get SmtpServer () : String
function set SmtpServer (value : String)

Property Value

Type: System.String
A String that contains the name used to connect to the SMTP server.