다음을 통해 공유


SendMailMessage.SmtpServer Property

Definition

Gets or sets the name of the Host used to send the email. This host name will be assigned to the Powershell variable PSEmailServer, if this host can not reached an appropriate error. message will be displayed.

public:
 property System::String ^ SmtpServer { System::String ^ get(); void set(System::String ^ value); };
public:
 property Platform::String ^ SmtpServer { Platform::String ^ get(); void set(Platform::String ^ value); };
public string SmtpServer { get; set; }
[System.Management.Automation.Alias(new System.String[] { "ComputerName" })]
[System.Management.Automation.Parameter(Position=3, ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.ValidateNotNullOrEmpty]
public string SmtpServer { get; set; }
member this.SmtpServer : string with get, set
[<System.Management.Automation.Alias(new System.String[] { "ComputerName" })>]
[<System.Management.Automation.Parameter(Position=3, ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
member this.SmtpServer : string with get, set
Public Property SmtpServer As String

Property Value

Attributes

Applies to