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(FileBase) |
Initializes a new instance of the EmailAttachment class based off a FileBase object. |
EmailAttachment(String) |
Initializes a new instance of the EmailAttachment class based off the file specified in the provided path. |
EmailAttachment(String, String) |
Initializes a new instance of the EmailAttachment class based off the file specified in the provided path and providing an explicit MIME filetype. |
EmailAttachment(FileBase)
- Source:
- Email.shared.cs
- Source:
- Email.shared.cs
Initializes a new instance of the EmailAttachment class based off a FileBase object.
public:
EmailAttachment(Microsoft::Maui::Storage::FileBase ^ file);
public EmailAttachment(Microsoft.Maui.Storage.FileBase file);
new Microsoft.Maui.ApplicationModel.Communication.EmailAttachment : Microsoft.Maui.Storage.FileBase -> Microsoft.Maui.ApplicationModel.Communication.EmailAttachment
Public Sub New (file As FileBase)
Parameters
Applies to
EmailAttachment(String)
- Source:
- Email.shared.cs
- Source:
- Email.shared.cs
Initializes a new instance of the EmailAttachment class based off the file specified in the provided path.
public:
EmailAttachment(System::String ^ fullPath);
public EmailAttachment(string fullPath);
new Microsoft.Maui.ApplicationModel.Communication.EmailAttachment : string -> Microsoft.Maui.ApplicationModel.Communication.EmailAttachment
Public Sub New (fullPath As String)
Parameters
- fullPath
- String
Full path and filename to file on filesystem.
Applies to
EmailAttachment(String, String)
- Source:
- Email.shared.cs
- Source:
- Email.shared.cs
Initializes a new instance of the EmailAttachment class based off the file specified in the provided path and providing an explicit MIME filetype.
public:
EmailAttachment(System::String ^ fullPath, System::String ^ contentType);
public EmailAttachment(string fullPath, string contentType);
new Microsoft.Maui.ApplicationModel.Communication.EmailAttachment : string * string -> Microsoft.Maui.ApplicationModel.Communication.EmailAttachment
Public Sub New (fullPath As String, contentType As String)
Parameters
- fullPath
- String
Full path and filename to file on filesystem.
- contentType
- String
Content type (MIME type) of the file (e.g.: image/png
).