SendMailMessage.Attachments 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 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