Condividi tramite


SendMailMessage.Port Property

Definition

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.

Applies to