SmtpServer.PortNumber Property

Updated: April 16, 2012

Gets or sets the number of the port used to communicate with the SMTP server. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in Microsoft.EnterpriseManagement.OperationsManager.dll)Dim instance As SmtpServer Dim value As Nullable(Of Integer) value = instance.PortNumber instance.PortNumber = valuePublic Property PortNumber As Nullable(Of Integer)public Nullable<int> PortNumber { get; set; }public: property Nullable<int> PortNumber { Nullable<int> get (); void set (Nullable<int> value); }/** @property */ public Nullable<int> get_PortNumber () /** @property */ public void set_PortNumber (Nullable<int> value) public function get PortNumber () : Nullable<int> public function set PortNumber (value : Nullable<int>) Property ValueReturns a Int32 value that contains the port number used to communicate with the SMTP server.

By default, the server uses port 25.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms