EmailAttachment Constructors
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.
Overloads
EmailAttachment(String) |
Email attachment from filename. |
EmailAttachment(FileBase) |
Email attachment from existing file. |
EmailAttachment(String, String) |
Explicit content type (MIME type) of file. |
EmailAttachment(String)
Email attachment from filename.
public EmailAttachment (string fullPath);
Parameters
- fullPath
- System.String
Full path and filename to file.
Applies to
EmailAttachment(FileBase)
Email attachment from existing file.
public EmailAttachment (Xamarin.Essentials.FileBase file);
Parameters
- file
- FileBase
Existing file.
Applies to
EmailAttachment(String, String)
Explicit content type (MIME type) of file.
public EmailAttachment (string fullPath, string contentType);
Parameters
- fullPath
- System.String
Full path and filename to file.
- contentType
- System.String
Content type (MIME type) of the file (eg: image/png
).