Export (0) Print
Expand All

SmtpNetworkElement.Port Property

Note: This property is new in the .NET Framework version 2.0.

Gets or sets the port that SMTP clients use to connect to an SMTP mail server. The default value is 25.

Namespace: System.Net.Configuration
Assembly: System (in system.dll)

public int Port { get; set; }
/** @property */
public int get_Port ()

/** @property */
public void set_Port (int value)

public function get Port () : int

public function set Port (value : int)

Property Value

A string that represents the port to connect to an SMTP mail server.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft