次の方法で共有


SendMailMessage.Attachments Property

Definition

Gets or sets the files names to be attached to the email. If the filename specified can not be found, then the relevant error message should be thrown.

public:
 property cli::array <System::String ^> ^ Attachments { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public:
 property Platform::Array <Platform::String ^> ^ Attachments { Platform::Array <Platform::String ^> ^ get(); void set(Platform::Array <Platform::String ^> ^ value); };
public string[] Attachments { get; set; }
[System.Management.Automation.Alias(new System.String[] { "PsPath" })]
[System.Management.Automation.Parameter(ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.ValidateNotNullOrEmpty]
public string[] Attachments { get; set; }
member this.Attachments : string[] with get, set
[<System.Management.Automation.Alias(new System.String[] { "PsPath" })>]
[<System.Management.Automation.Parameter(ValueFromPipeline=true, ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.ValidateNotNullOrEmpty>]
member this.Attachments : string[] with get, set
Public Property Attachments As String()

Property Value

String[]
Attributes

Applies to