SendMailMessage.Port Property

Definition

Specifies the Port to be used on SmtpServer

public:
 property int Port { int get(); void set(int value); };
public:
 property int Port { int get(); void set(int value); };
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.ValidateRange(Mono.Cecil.CustomAttributeArgument, Mono.Cecil.CustomAttributeArgument)]
public int Port { get; set; }
member this.Port : int with get, set
Public Property Port As Integer

Property Value

Attributes

Remarks

Value must be greater than zero.

Applies to