Share via


SmtpServer.PortNumber Property

 

Applies To: Operations Manager for System Center 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)

Syntax

public Nullable<int> PortNumber { get; set; }
public:
property Nullable<int> PortNumber {
    Nullable<int> get();
    void set(Nullable<int> value);
}
member PortNumber : Nullable<int> with get, set
Public Property PortNumber As Nullable(Of Integer)

Property Value

Type: System.Nullable<Int32>

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

Remarks

By default, the server uses port 25.

See Also

SmtpServer Class
Microsoft.EnterpriseManagement.Administration Namespace

Return to top