Share via


SmtpServer.PortNumber Property

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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

'Usage
Dim instance As SmtpServer
Dim value As Nullable(Of Integer)

value = instance.PortNumber

instance.PortNumber = value

Syntax

'Declaration
Public 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 Value

Returns 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 Vista, Windows Server 2003, and

Target Platforms

See Also

Reference

SmtpServer Class
SmtpServer Members
Microsoft.EnterpriseManagement.Administration Namespace