SendMailMessage.Port Property   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the Port to be used on the server. SmtpServer
public:
 property int Port { int get(); void set(int value); };
	public:
 property int Port { int get(); void set(int value); };
	public int Port { get; set; }
	[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.ValidateRange(0, 2147483647)]
public int Port { get; set; }
	member this.Port : int with get, set
	[<System.Management.Automation.Parameter(ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.ValidateRange(0, 2147483647)>]
member this.Port : int with get, set
	Public Property Port As Integer
	Property Value
- Attributes
 
Remarks
Value must be greater than zero.