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)

Usage

Visual Basic
Dim instance As SmtpServer
Dim value As Nullable(Of Integer)

value = instance.PortNumber

instance.PortNumber = value

Syntax

Visual Basic
Public Property PortNumber As Nullable(Of Integer)
C#
public Nullable<int> PortNumber { get; set; }
C++
public:
property Nullable<int> PortNumber {
		Nullable<int> get ();
		void set (Nullable<int> value);
}
J#
/** @property */
public Nullable<int> get_PortNumber ()

/** @property */
public void set_PortNumber (Nullable<int> value)
JScript
public function get PortNumber () : Nullable<int>

public function set PortNumber (value : Nullable<int>)

Property Value

A Int32 value that contains the port number used to communicate with the SMTP server.

Remarks

By default, the server uses port 25.


Thread Safety

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

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also